biz_object_oam_rule_info.go 1.7 KB

123456789101112131415161718192021
  1. package viewmodels
  2. type BizObjectOAMRuleInfo 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. TargetAttrTitle string `json:"targetAttrTitle" xorm:"'target_attr_title' varchar(127) comment('Target AttrTitle')"`
  14. TargetAttrCode string `json:"targetAttrCode" xorm:"'target_attr_code' varchar(127) comment('Target AttrCode') "`
  15. RuleCode string `json:"ruleCode" xorm:"'rule_code' varchar(127) comment('Rule Code') "`
  16. }
  17. func (t *BizObjectOAMRuleInfo) TableName() string {
  18. return "biz_object_oam_rule"
  19. }