Documentation ¶
Index ¶
- func APIGETCategory(c *gin.Context)
- func APIGETCategoryByTermTaxonomyID(c *gin.Context)
- func APIGETTaxonomy(c *gin.Context)
- func APIPOSTTaxonomy(c *gin.Context)
- func APIPUTTaxonomy(c *gin.Context)
- func GETCategory(req *GETCategoryReq) (*[]model.Category, error)
- func GETCategoryByTermTaxonomyID(req *GETCategoryByTermTaxonomyIDReq) (*model.Category, error)
- func GetTaxonomy(taxonomy string, parent uint64) (*[]model.Taxonomy, error)
- func GetTaxonomyIDs(taxonomy string) ([]uint64, error)
- func POSTTaxonomy(name string, taxonomy string, description string, parent uint64, order int) error
- func POSTTermTaxonomy(tx *sqlx.Tx, termID uint64, taxonomy string, description string, parent uint64, ...) (sql.Result, error)
- func POSTTerms(tx *sqlx.Tx, name string, slug string, termGroup int) (sql.Result, error)
- func PUTTaxonomy(req *PUTTaxonomyReq) (sql.Result, error)
- func Register()
- type APIGetTaxonomyForm
- type APIPOSTTaxonomyForm
- type GETCategoryByTermTaxonomyIDReq
- type GETCategoryReq
- type PUTTaxonomyReq
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIGETCategory ¶ added in v0.0.18
func APIGETCategoryByTermTaxonomyID ¶ added in v0.0.18
APIGETCategoryByTermTaxonomyID @since 0.0.17
func APIGETTaxonomy ¶ added in v0.0.18
APIGETTaxonomy 根据类型查询所有分类 @since 0.0.12 @since 0.0.17 换标准方法名称
func APIPOSTTaxonomy ¶ added in v0.0.18
APIPOSTTaxonomy 添加分类 @since 0.0.17
func APIPUTTaxonomy ¶ added in v0.0.18
func GETCategory ¶ added in v0.0.18
func GETCategory(req *GETCategoryReq) (*[]model.Category, error)
func GETCategoryByTermTaxonomyID ¶ added in v0.0.18
func GETCategoryByTermTaxonomyID(req *GETCategoryByTermTaxonomyIDReq) (*model.Category, error)
func GetTaxonomyIDs ¶
func POSTTaxonomy ¶ added in v0.0.18
func POSTTermTaxonomy ¶ added in v0.0.18
func PUTTaxonomy ¶ added in v0.0.18
func PUTTaxonomy(req *PUTTaxonomyReq) (sql.Result, error)
Types ¶
type APIGetTaxonomyForm ¶
type APIPOSTTaxonomyForm ¶ added in v0.0.18
type GETCategoryByTermTaxonomyIDReq ¶ added in v0.0.18
type GETCategoryByTermTaxonomyIDReq struct {
TermTaxonomyID uint64 `form:"term_taxonomy_id" json:"term_taxonomy_id" binding:"required"`
}
type GETCategoryReq ¶ added in v0.0.18
type GETCategoryReq struct {
Taxonomy string `form:"taxonomy"`
}
type PUTTaxonomyReq ¶ added in v0.0.18
type PUTTaxonomyReq struct { APIPOSTTaxonomyForm TermTaxonomyID uint64 `json:"term_taxonomy_id" binding:"required"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.