api_module.go 1.2 KB

12345678910111213141516171819202122
  1. package datamodels
  2. import "time"
  3. type ApiModule struct {
  4. ModuleId int64 `json:"moduleId" xorm:"'module_id' bigint pk comment('Module ID') "`
  5. ModuleTitle string `json:"moduleTitle" xorm:"'module_title' varchar(127) comment('Module Title') "`
  6. ModuleCode string `json:"moduleCode" xorm:"'module_code' varchar(127) comment('Module Code') "`
  7. ModuleDesc string `json:"moduleDesc" xorm:"'module_desc' varchar(50) comment('Module Desc') "`
  8. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' bigint comment('是否可修改') "`
  9. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  10. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  11. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  12. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  13. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  14. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  15. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  16. }
  17. func (t *ApiModule) TableName() string {
  18. return "api_module"
  19. }