附近小店
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.

sys_template.go 1.4 KiB

3 months ago
1234567891011121314151617181920
  1. package model
  2. import (
  3. "time"
  4. )
  5. type SysTemplate struct {
  6. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  7. Uid int `json:"uid" xorm:"not null default 0 INT(11)"`
  8. Name string `json:"name" xorm:"not null default '' comment('模板名称') VARCHAR(32)"`
  9. Title string `json:"title" xorm:"not null default '' comment('页面title字段') VARCHAR(32)"`
  10. Type string `json:"type" xorm:"not null default 'index' comment('模板类型;index:首页;bottom:底部导航栏;member:会员中心;custom:自定义模板;share_goods_image:商品图文分享;share_goods_link:商品链接分享;share_goods_platform_xx:商品分享平台(xx对应平台类型)') VARCHAR(64)"`
  11. Image string `json:"image" xorm:"not null default '' VARCHAR(128)"`
  12. IsUse int `json:"is_use" xorm:"default 0 comment('是否使用;1:使用;0未使用') TINYINT(1)"`
  13. Remark string `json:"remark" xorm:"not null default '' comment('备注') VARCHAR(128)"`
  14. LimitData string `json:"limit_data" xorm:"not null comment('') TEXT"`
  15. IsSystem int `json:"is_system" xorm:"not null default 0 comment('是否系统模板;0:否;1:是') TINYINT(1)"`
  16. CreateAt time.Time `json:"create_at" xorm:"default CURRENT_TIMESTAMP TIMESTAMP"`
  17. UpdateAt time.Time `json:"update_at" xorm:"default CURRENT_TIMESTAMP TIMESTAMP"`
  18. }