Jelajahi Sumber

api/Common/GetAllEnums \ api/Common/QueryErrorInfos:删除不需要返回字段,减少数据大小

deng.yinping 10 bulan lalu
induk
melakukan
62e3d227dd
4 mengubah file dengan 9 tambahan dan 114 penghapusan
  1. 0 38
      docs/docs.go
  2. 0 38
      docs/swagger.json
  3. 0 29
      docs/swagger.yaml
  4. 9 9
      models/common.go

+ 0 - 38
docs/docs.go

@@ -30883,28 +30883,14 @@ const docTemplate = `{
         "models.Enumdicitem": {
             "type": "object",
             "required": [
-                "autoid",
                 "enumdiccode",
-                "enumdicid",
                 "enumitemname"
             ],
             "properties": {
-                "autoid": {
-                    "description": "自增ID",
-                    "type": "integer"
-                },
-                "bankmappedvalue": {
-                    "description": "银行服务对应值",
-                    "type": "string"
-                },
                 "enumdiccode": {
                     "description": "所属枚举代码",
                     "type": "string"
                 },
-                "enumdicid": {
-                    "description": "所属枚举ID",
-                    "type": "integer"
-                },
                 "enumdicname": {
                     "description": "枚举项名称",
                     "type": "string"
@@ -30929,10 +30915,6 @@ const docTemplate = `{
                     "description": "枚举项状态 - 1.启用 2.不启用",
                     "type": "integer"
                 },
-                "enumitemvalue": {
-                    "description": "通用值 - [币种通用简写]",
-                    "type": "string"
-                },
                 "param1": {
                     "description": "参数1[币种:币种小数位]",
                     "type": "string"
@@ -30940,10 +30922,6 @@ const docTemplate = `{
                 "param2": {
                     "description": "参数1[币种:币种显示单位]",
                     "type": "string"
-                },
-                "remark": {
-                    "description": "备注",
-                    "type": "string"
                 }
             }
         },
@@ -52673,25 +52651,9 @@ const docTemplate = `{
                     "description": "异常描述 - 繁体",
                     "type": "string"
                 },
-                "errorcode": {
-                    "description": "异常代码",
-                    "type": "string"
-                },
                 "errorid": {
                     "description": "异常ID",
                     "type": "integer"
-                },
-                "modulecode": {
-                    "description": "所属模块",
-                    "type": "string"
-                },
-                "operatecode": {
-                    "description": "所属操作",
-                    "type": "string"
-                },
-                "rownumber": {
-                    "description": "行号",
-                    "type": "string"
                 }
             }
         },

+ 0 - 38
docs/swagger.json

@@ -30874,28 +30874,14 @@
         "models.Enumdicitem": {
             "type": "object",
             "required": [
-                "autoid",
                 "enumdiccode",
-                "enumdicid",
                 "enumitemname"
             ],
             "properties": {
-                "autoid": {
-                    "description": "自增ID",
-                    "type": "integer"
-                },
-                "bankmappedvalue": {
-                    "description": "银行服务对应值",
-                    "type": "string"
-                },
                 "enumdiccode": {
                     "description": "所属枚举代码",
                     "type": "string"
                 },
-                "enumdicid": {
-                    "description": "所属枚举ID",
-                    "type": "integer"
-                },
                 "enumdicname": {
                     "description": "枚举项名称",
                     "type": "string"
@@ -30920,10 +30906,6 @@
                     "description": "枚举项状态 - 1.启用 2.不启用",
                     "type": "integer"
                 },
-                "enumitemvalue": {
-                    "description": "通用值 - [币种通用简写]",
-                    "type": "string"
-                },
                 "param1": {
                     "description": "参数1[币种:币种小数位]",
                     "type": "string"
@@ -30931,10 +30913,6 @@
                 "param2": {
                     "description": "参数1[币种:币种显示单位]",
                     "type": "string"
-                },
-                "remark": {
-                    "description": "备注",
-                    "type": "string"
                 }
             }
         },
@@ -52664,25 +52642,9 @@
                     "description": "异常描述 - 繁体",
                     "type": "string"
                 },
-                "errorcode": {
-                    "description": "异常代码",
-                    "type": "string"
-                },
                 "errorid": {
                     "description": "异常ID",
                     "type": "integer"
-                },
-                "modulecode": {
-                    "description": "所属模块",
-                    "type": "string"
-                },
-                "operatecode": {
-                    "description": "所属操作",
-                    "type": "string"
-                },
-                "rownumber": {
-                    "description": "行号",
-                    "type": "string"
                 }
             }
         },

+ 0 - 29
docs/swagger.yaml

@@ -4988,18 +4988,9 @@ definitions:
     type: object
   models.Enumdicitem:
     properties:
-      autoid:
-        description: 自增ID
-        type: integer
-      bankmappedvalue:
-        description: 银行服务对应值
-        type: string
       enumdiccode:
         description: 所属枚举代码
         type: string
-      enumdicid:
-        description: 所属枚举ID
-        type: integer
       enumdicname:
         description: 枚举项名称
         type: string
@@ -5018,22 +5009,14 @@ definitions:
       enumitemstatus:
         description: 枚举项状态 - 1.启用 2.不启用
         type: integer
-      enumitemvalue:
-        description: 通用值 - [币种通用简写]
-        type: string
       param1:
         description: 参数1[币种:币种小数位]
         type: string
       param2:
         description: 参数1[币种:币种显示单位]
         type: string
-      remark:
-        description: 备注
-        type: string
     required:
-    - autoid
     - enumdiccode
-    - enumdicid
     - enumitemname
     type: object
   models.Ermcp2AreaExposure:
@@ -21180,21 +21163,9 @@ definitions:
       descriptionzh_tw:
         description: 异常描述 - 繁体
         type: string
-      errorcode:
-        description: 异常代码
-        type: string
       errorid:
         description: 异常ID
         type: integer
-      modulecode:
-        description: 所属模块
-        type: string
-      operatecode:
-        description: 所属操作
-        type: string
-      rownumber:
-        description: 行号
-        type: string
     required:
     - errorid
     type: object

+ 9 - 9
models/common.go

@@ -113,15 +113,15 @@ func (Tablecolumnconfig) TableName() string {
 
 // Enumdicitem 枚举项字典表
 type Enumdicitem struct {
-	Autoid           int64  `json:"autoid"  xorm:"'AUTOID'" binding:"required"`             // 自增ID
-	Enumdicid        int32  `json:"enumdicid"  xorm:"'ENUMDICID'" binding:"required"`       // 所属枚举ID
+	Autoid           int64  `json:"-"  xorm:"'AUTOID'" binding:"required"`                  // 自增ID
+	Enumdicid        int32  `json:"-"  xorm:"'ENUMDICID'" binding:"required"`               // 所属枚举ID
 	Enumdiccode      string `json:"enumdiccode"  xorm:"'ENUMDICCODE'" binding:"required"`   // 所属枚举代码
 	Enumdicname      string `json:"enumdicname"  xorm:"'ENUMDICNAME'"`                      // 枚举项名称
 	Enumitemname     int64  `json:"enumitemname"  xorm:"'ENUMITEMNAME'" binding:"required"` // 枚举项值
 	Enumitemstatus   int32  `json:"enumitemstatus"  xorm:"'ENUMITEMSTATUS'"`                // 枚举项状态 - 1.启用 2.不启用
-	Bankmappedvalue  string `json:"bankmappedvalue"  xorm:"'BANKMAPPEDVALUE'"`              // 银行服务对应值
-	Remark           string `json:"remark"  xorm:"'REMARK'"`                                // 备注
-	Enumitemvalue    string `json:"enumitemvalue"  xorm:"'ENUMITEMVALUE'"`                  // 通用值 - [币种通用简写]
+	Bankmappedvalue  string `json:"-"  xorm:"'BANKMAPPEDVALUE'"`                            // 银行服务对应值
+	Remark           string `json:"-"  xorm:"'REMARK'"`                                     // 备注
+	Enumitemvalue    string `json:"-"  xorm:"'ENUMITEMVALUE'"`                              // 通用值 - [币种通用简写]
 	Param1           string `json:"param1"  xorm:"'PARAM1'"`                                // 参数1[币种:币种小数位]
 	Param2           string `json:"param2"  xorm:"'PARAM2'"`                                // 参数1[币种:币种显示单位]
 	EnumdicnameEn    string `json:"enumdicnameen"  xorm:"'ENUMDICNAMEEN'"`                  // 枚举项名称 - 英文
@@ -776,11 +776,11 @@ func GetServerTime2() (*string, error) {
 // QueryErrorInfosRsp 获取数据库错误信息模型
 type QueryErrorInfosRsp struct {
 	Errorid          int64  `json:"errorid"  xorm:"'ERRORID'" binding:"required"` // 异常ID
-	Errorcode        string `json:"errorcode"  xorm:"'ERRORCODE'"`                // 异常代码
-	Modulecode       string `json:"modulecode"  xorm:"'MODULECODE'"`              // 所属模块
-	Operatecode      string `json:"operatecode"  xorm:"'OPERATECODE'"`            // 所属操作
+	Errorcode        string `json:"-"  xorm:"'ERRORCODE'"`                        // 异常代码
+	Modulecode       string `json:"-"  xorm:"'MODULECODE'"`                       // 所属模块
+	Operatecode      string `json:"-"  xorm:"'OPERATECODE'"`                      // 所属操作
 	Description      string `json:"description"  xorm:"'DESCRIPTION'"`            // 异常描述
-	Rownumber        string `json:"rownumber" xorm:"ROWNUMBER"`                   // 行号
+	Rownumber        string `json:"-" xorm:"ROWNUMBER"`                           // 行号
 	DescriptionEn    string `json:"descriptionen"  xorm:"'DESCRIPTIONEN'"`        // 异常描述 - 英文
 	DescriptionZh_Tw string `json:"descriptionzh_tw"  xorm:"'DESCRIPTIONZH_TW'"`  // 异常描述 - 繁体
 	DescriptionTh    string `json:"descriptionth"  xorm:"'DESCRIPTIONTH'"`        // 异常描述 - 泰文