houyaf 3 سال پیش
والد
کامیت
6f5181dcde
3فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 1 0
      datamodels/biz_rule.go
  2. 1 0
      viewmodels/biz_rule_info.go
  3. 0 1
      web/controllers/api_gateway_controller.go

+ 1 - 0
datamodels/biz_rule.go

@@ -6,6 +6,7 @@ type BizRule struct {
     RuleId      int64     `json:"ruleId"          xorm:"'rule_id'         bigint      pk comment('Rule ID')     "`
     RuleType    int64     `json:"ruleType"        xorm:"'rule_type'       bigint         comment('Type')        "`
     RuleTitle   string    `json:"ruleTitle"       xorm:"'rule_title'      varchar(127)   comment('标题')        "`
+    RuleDesc    string    `json:"ruleDesc"        xorm:"'rule_desc'       varchar(511)   comment('描述')        "`
     Comment     string    `json:"comment"         xorm:"'comment'         varchar(255)   comment('描述')        "`
     IsFixed     int64     `json:"isFixed"         xorm:"'is_fixed'        int            comment('是否可修改')   "`
     CreatedBy   int64     `json:"createdBy"       xorm:"'created_by'"`

+ 1 - 0
viewmodels/biz_rule_info.go

@@ -4,6 +4,7 @@ type BizRuleInfo struct {
     RuleId      int64     `json:"ruleId"          xorm:"'rule_id'         bigint      pk comment('Rule ID')        "`
     RuleType    int64     `json:"ruleType"        xorm:"'rule_type'       bigint         comment('Type')           "`
     RuleTitle   string    `json:"ruleTitle"       xorm:"'rule_title'      varchar(127)   comment('模型名称')        "`
+    RuleDesc    string    `json:"ruleDesc"        xorm:"'rule_desc'       varchar(511)   comment('描述')        "`
     Comment     string    `json:"comment"         xorm:"'comment'         varchar(255)   comment('描述')            "`
     IsFixed     int64     `json:"isFixed"         xorm:"'is_fixed'        int            comment('是否可修改')       "`
 }

+ 0 - 1
web/controllers/api_gateway_controller.go

@@ -105,7 +105,6 @@ func (c *ApiGatewayController) buildUrlParams(objectCode, oamCode string) ([]vie
     return queryParams, nil
 }
 
-
 func (c *ApiGatewayController) GenerateParams(objectCode, oamCode string)*JsonResult {
     data, err := c.Service.GenerateParams(objectCode, oamCode)
     if err != nil {