biz_rule.go 1.2 KB

12345678910111213141516171819202122
  1. package datamodels
  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. Comment string `json:"comment" xorm:"'comment' varchar(255) comment('描述') "`
  8. IsFixed int64 `json:"isFixed" xorm:"'is_fixed' int 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 *BizRule) TableName() string {
  18. return "biz_rule"
  19. }