面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

13 line
878 B

  1. package model
  2. type SysCategory struct {
  3. Cid int `json:"cid" xorm:"not null pk autoincr comment('分类ID') INT(10)"`
  4. Pid int `json:"pid" xorm:"not null default 0 comment('父分类ID') index INT(10)"`
  5. ProviderCid int `json:"provider_cid" xorm:"not null default 0 comment('供应商分类ID') INT(10)"`
  6. Provider string `json:"provider" xorm:"not null default '' comment('供应商名,sys为首页分类,taobao,jd,pdd,vip,suning,kaola') VARCHAR(16)"`
  7. Title string `json:"title" xorm:"not null default '' comment('标题') VARCHAR(64)"`
  8. Icon string `json:"icon" xorm:"not null default '' comment('图标') VARCHAR(2000)"`
  9. Sort int `json:"sort,omitempty" xorm:"not null default 0 comment('排序,越大越前') INT(10)"`
  10. State int `json:"state,omitempty" xorm:"default 1 comment('0隐藏,1显示') TINYINT(1)"`
  11. }