biz_object_rule_info.go 1.4 KB

12345678910111213141516171819
  1. package viewmodels
  2. type BizObjectRuleInfo struct {
  3. BizId int64 `json:"bizId" xorm:"'biz_id' bigint comment('BIZ ID') "`
  4. ObjectId int64 `json:"objectId" xorm:"'object_id' bigint comment('Object ID') "`
  5. ObjectTitle string `json:"objectTitle" xorm:"'object_title' varchar(127) comment('Object Title') "`
  6. OamId int64 `json:"oamId" xorm:"'oam_id' bigint comment('Object OAM ID') "`
  7. OamTitle string `json:"oamTitle" xorm:"'oam_title' varchar(127) comment('OAMTitle') "`
  8. OrId int64 `json:"orId" xorm:"'or_id' bigint pk comment('Object Rule ID') "`
  9. RuleId int64 `json:"ruleId" xorm:"'rule_id' bigint comment('Rule ID') "`
  10. RuleType int64 `json:"ruleType" xorm:"'rule_type' bigint comment('Type') "`
  11. RuleTitle string `json:"ruleTitle" xorm:"'rule_title' varchar(127) comment('模型名称') "`
  12. TargetAttrId int64 `json:"targetAttrId" xorm:"'target_attr_id' bigint comment('Target AttrId') "`
  13. RuleCode string `json:"ruleCode" xorm:"'rule_code' varchar(1023) comment('Rule Code') "`
  14. }
  15. func (t *BizObjectRuleInfo) TableName() string {
  16. return "biz_object_rule"
  17. }