app.go 2.0 KB

123456789101112131415161718192021222324252627282930
  1. package datamodel
  2. import "time"
  3. type App struct {
  4. AppId int64 `json:"appId" xorm:"'app_id' bigint pk comment('主键ID') "`
  5. AppCatId int64 `json:"appCatId" xorm:"'app_cat_id' bigint pk comment('主键ID') "`
  6. AppTitle string `json:"appTitle" xorm:"'app_title' varchar(127) comment('名称') "`
  7. AppCode string `json:"appCode" xorm:"'app_code' varchar(127) comment('编码') "`
  8. AppParam string `json:"appParam" xorm:"'app_param' varchar(127) comment('Param') "`
  9. AppUrl string `json:"appUrl" xorm:"'app_url' varchar(511) comment('Url') "`
  10. AppLog string `json:"appLogo" xorm:"'app_logo' varchar(255) comment('Url') "`
  11. Status int64 `json:"status" xorm:"'status' bigint comment('Status') "`
  12. IfStore int64 `json:"ifStore" xorm:"'if_store' bigint comment('Status') "`
  13. AppKey string `json:"appKey" xorm:"'app_key' varchar(255) comment('Url') "`
  14. AppSecret string `json:"appSecret" xorm:"'app_secret' varchar(255) comment('Url') "`
  15. AppDesc string `json:"appDesc" xorm:"'app_desc' varchar(50) comment('描述') "`
  16. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('是否可修改') "`
  17. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  18. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  19. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  20. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  21. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  22. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  23. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  24. }
  25. func (t *App) TableName() string {
  26. return "app"
  27. }