biz_rule.go 1.3 KB

1234567891011121314151617181920212223
  1. package datamodel
  2. import "time"
  3. type BizRule struct {
  4. RuleId int64 `json:"ruleId" xorm:"'rule_id' bigint pk comment('Rule ID') "`
  5. RuleType int64 `json:"ruleType" xorm:"'rule_type' bigint comment('Type') "`
  6. RuleTitle string `json:"ruleTitle" xorm:"'rule_title' varchar(127) comment('标题') "`
  7. RuleDesc string `json:"ruleDesc" xorm:"'rule_desc' varchar(511) comment('描述') "`
  8. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  9. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int comment('是否可修改') "`
  10. CreatedBy int64 `json:"createdBy" xorm:"'created_by'"`
  11. CreatedAt time.Time `json:"createdAt" xorm:"'created_at'"`
  12. UpdatedBy int64 `json:"updatedBy" xorm:"'updated_by'"`
  13. UpdatedAt time.Time `json:"updatedAt" xorm:"'updated_at'"`
  14. DeletedFlag int64 `json:"deletedFlag" xorm:"'deleted_flag'"`
  15. DeletedBy int64 `json:"deletedBy" xorm:"'deleted_by'"`
  16. DeletedAt time.Time `json:"deletedAt" xorm:"'deleted_at'"`
  17. }
  18. func (t *BizRule) TableName() string {
  19. return "biz_rule"
  20. }