Documentation ¶
Index ¶
- func CreatePjArticle(m *PjArticleModel) (int, error)
- func CreatePjType(m *PjTypeModel) (int, error)
- func DeletePjArticleById(id int) (int, error)
- func DeletePjTypeById(id int) (int, error)
- func PjArticleAttributes() map[string]string
- func PjTypeAttributes() map[string]string
- func UpdatePjArticle(m *PjArticleModel) error
- func UpdatePjType(m *PjTypeModel) error
- type PjArticleModel
- type PjTypeModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePjArticle ¶
func CreatePjArticle(m *PjArticleModel) (int, error)
func CreatePjType ¶
func CreatePjType(m *PjTypeModel) (int, error)
func DeletePjArticleById ¶
func DeletePjTypeById ¶
func PjArticleAttributes ¶
func PjTypeAttributes ¶
func UpdatePjArticle ¶
func UpdatePjArticle(m *PjArticleModel) error
func UpdatePjType ¶
func UpdatePjType(m *PjTypeModel) error
Types ¶
type PjArticleModel ¶
type PjArticleModel struct { ID int `orm:"column(article_id);pk;auto"` ArticleTitle string `orm:"column(article_title)"` TypeId int `orm:"column(type_id)"` }
func GetAllPjArticle ¶
func GetAllPjArticle() (ms []PjArticleModel, err error)
func GetPjArticleById ¶
func GetPjArticleById(id int) (PjArticleModel, error)
func SearchPjArticle ¶
func (*PjArticleModel) TableName ¶
func (t *PjArticleModel) TableName() string
type PjTypeModel ¶
type PjTypeModel struct { ID int `orm:"column(type_id);pk;auto"` TypeName string `orm:"column(type_name)"` }
func GetAllPjType ¶
func GetAllPjType() (ms []PjTypeModel, err error)
func GetPjTypeById ¶
func GetPjTypeById(id int) (PjTypeModel, error)
func SearchPjType ¶
func (*PjTypeModel) TableName ¶
func (t *PjTypeModel) TableName() string
Click to show internal directories.
Click to hide internal directories.