Sfoglia il codice sorgente

任务 #6221 【Go查询】api/Market/GetMarketSections: 返回时添加字段

zhouxnsz 1 anno fa
parent
commit
36c22f4191
5 ha cambiato i file con 94 aggiunte e 22 eliminazioni
  1. 4 4
      controllers/guangzuan/tradeService.go
  2. 24 0
      docs/docs.go
  3. 24 0
      docs/swagger.json
  4. 18 0
      docs/swagger.yaml
  5. 24 18
      models/ori.go

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
-// @Param    page     query    int    false "页码"
-// @Param    pagesize query    int    false "每页条数"
+// @Param    page          query    int false "页码"
+// @Param    pagesize      query    int false "每页条数"
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据ID"
-// @Param    page          query    int false "页码"
-// @Param    pagesize      query    int false "每页条数"
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 24 - 0
docs/docs.go

@@ -39407,6 +39407,18 @@ const docTemplate = `{
                     "description": "市场版块名称",
                     "type": "string"
                 },
+                "marketsectionnameen": {
+                    "description": "市场版块名称(英文)",
+                    "type": "string"
+                },
+                "marketsectionnameth": {
+                    "description": "市场版块名称(泰文)",
+                    "type": "string"
+                },
+                "marketsectionnamezh_tw": {
+                    "description": "市场版块名称(繁体)",
+                    "type": "string"
+                },
                 "modifierid": {
                     "description": "修改人",
                     "type": "integer"
@@ -43536,6 +43548,18 @@ const docTemplate = `{
                     "description": "显示名称",
                     "type": "string"
                 },
+                "displaynameen": {
+                    "description": "显示名称(英文)",
+                    "type": "string"
+                },
+                "displaynameth": {
+                    "description": "显示名称(泰文)",
+                    "type": "string"
+                },
+                "displaynamezh_tw": {
+                    "description": "显示名称(繁体)",
+                    "type": "string"
+                },
                 "marketids": {
                     "description": "市场IDs - 逗号分隔",
                     "type": "string"

+ 24 - 0
docs/swagger.json

@@ -39398,6 +39398,18 @@
                     "description": "市场版块名称",
                     "type": "string"
                 },
+                "marketsectionnameen": {
+                    "description": "市场版块名称(英文)",
+                    "type": "string"
+                },
+                "marketsectionnameth": {
+                    "description": "市场版块名称(泰文)",
+                    "type": "string"
+                },
+                "marketsectionnamezh_tw": {
+                    "description": "市场版块名称(繁体)",
+                    "type": "string"
+                },
                 "modifierid": {
                     "description": "修改人",
                     "type": "integer"
@@ -43527,6 +43539,18 @@
                     "description": "显示名称",
                     "type": "string"
                 },
+                "displaynameen": {
+                    "description": "显示名称(英文)",
+                    "type": "string"
+                },
+                "displaynameth": {
+                    "description": "显示名称(泰文)",
+                    "type": "string"
+                },
+                "displaynamezh_tw": {
+                    "description": "显示名称(繁体)",
+                    "type": "string"
+                },
                 "marketids": {
                     "description": "市场IDs - 逗号分隔",
                     "type": "string"

+ 18 - 0
docs/swagger.yaml

@@ -11688,6 +11688,15 @@ definitions:
       marketsectionname:
         description: 市场版块名称
         type: string
+      marketsectionnameen:
+        description: 市场版块名称(英文)
+        type: string
+      marketsectionnameth:
+        description: 市场版块名称(泰文)
+        type: string
+      marketsectionnamezh_tw:
+        description: 市场版块名称(繁体)
+        type: string
       modifierid:
         description: 修改人
         type: integer
@@ -14799,6 +14808,15 @@ definitions:
       displayname:
         description: 显示名称
         type: string
+      displaynameen:
+        description: 显示名称(英文)
+        type: string
+      displaynameth:
+        description: 显示名称(泰文)
+        type: string
+      displaynamezh_tw:
+        description: 显示名称(繁体)
+        type: string
       marketids:
         description: 市场IDs - 逗号分隔
         type: string

+ 24 - 18
models/ori.go

@@ -764,18 +764,21 @@ func (r *Esigntemplateconfig) TableName() string {
 
 // Marketsection MarketSection
 type Marketsection struct {
-	MARKETSECTIONID   int64     `json:"marketsectionid" xorm:"MARKETSECTIONID"`     // 市场版块ID(SEQ_MARKETSECTION)
-	MARKETSECTIONNAME string    `json:"marketsectionname" xorm:"MARKETSECTIONNAME"` // 市场版块名称
-	ORDERINDEX        int32     `json:"orderindex" xorm:"ORDERINDEX"`               // 排序
-	REMARK            string    `json:"remark" xorm:"REMARK"`                       // 备注
-	CREATETIME        time.Time `json:"createtime" xorm:"CREATETIME"`               // 创建时间
-	CREATORSRC        int32     `json:"creatorsrc" xorm:"CREATORSRC"`               // 创建人来源 - 1:管理端 2:终端 3:交易
-	CREATORID         int64     `json:"creatorid" xorm:"CREATORID"`                 // 创建人ID
-	MODIFIERSRC       int32     `json:"modifiersrc" xorm:"MODIFIERSRC"`             // 修改人来源 - 1:管理端 2:终端
-	MODIFIERID        int64     `json:"modifierid" xorm:"MODIFIERID"`               // 修改人
-	MODIFYTIME        time.Time `json:"modifytime" xorm:"MODIFYTIME"`               // 修改时间
-	ISVALID           int32     `json:"isvalid" xorm:"ISVALID"`                     // 是否有效 - 0:无效 1:有效
-	PICTUREURL        string    `json:"pictureurl" xorm:"PICTUREURL"`               // 显示图片(90*90)
+	MARKETSECTIONID        int64     `json:"marketsectionid" xorm:"MARKETSECTIONID"`               // 市场版块ID(SEQ_MARKETSECTION)
+	MARKETSECTIONNAME      string    `json:"marketsectionname" xorm:"MARKETSECTIONNAME"`           // 市场版块名称
+	ORDERINDEX             int32     `json:"orderindex" xorm:"ORDERINDEX"`                         // 排序
+	REMARK                 string    `json:"remark" xorm:"REMARK"`                                 // 备注
+	CREATETIME             time.Time `json:"createtime" xorm:"CREATETIME"`                         // 创建时间
+	CREATORSRC             int32     `json:"creatorsrc" xorm:"CREATORSRC"`                         // 创建人来源 - 1:管理端 2:终端 3:交易
+	CREATORID              int64     `json:"creatorid" xorm:"CREATORID"`                           // 创建人ID
+	MODIFIERSRC            int32     `json:"modifiersrc" xorm:"MODIFIERSRC"`                       // 修改人来源 - 1:管理端 2:终端
+	MODIFIERID             int64     `json:"modifierid" xorm:"MODIFIERID"`                         // 修改人
+	MODIFYTIME             time.Time `json:"modifytime" xorm:"MODIFYTIME"`                         // 修改时间
+	ISVALID                int32     `json:"isvalid" xorm:"ISVALID"`                               // 是否有效 - 0:无效 1:有效
+	PICTUREURL             string    `json:"pictureurl" xorm:"PICTUREURL"`                         // 显示图片(90*90)
+	MARKETSECTIONNAMEEN    string    `json:"marketsectionnameen" xorm:"MARKETSECTIONNAMEEN"`       // 市场版块名称(英文)
+	MARKETSECTIONNAMEZH_TW string    `json:"marketsectionnamezh_tw" xorm:"MARKETSECTIONNAMEZH_TW"` // 市场版块名称(繁体)
+	MARKETSECTIONNAMETH    string    `json:"marketsectionnameth" xorm:"MARKETSECTIONNAMETH"`       // 市场版块名称(泰文)
 }
 
 // TableName is MARKETSECTION
@@ -785,12 +788,15 @@ func (r *Marketsection) TableName() string {
 
 // Marketsectionconfignew 市场版块配置表(新) - 脚本初始化
 type Marketsectionconfignew struct {
-	MARKETSECTIONID int64     `json:"marketsectionid" xorm:"MARKETSECTIONID"` // 市场版块ID(SEQ_MARKETSECTION)
-	ORDERINDEX      int32     `json:"orderindex" xorm:"ORDERINDEX"`           // 排序
-	DISPLAYNAME     string    `json:"displayname" xorm:"DISPLAYNAME"`         // 显示名称
-	MARKETIDS       string    `json:"marketids" xorm:"MARKETIDS"`             // 市场IDs - 逗号分隔
-	UPDATETIME      time.Time `json:"updatetime" xorm:"UPDATETIME"`           // 更新时间
-	TRADEMODE       int32     `json:"trademode" xorm:"TRADEMODE"`             // 交易模式
+	MARKETSECTIONID  int64     `json:"marketsectionid" xorm:"MARKETSECTIONID"`   // 市场版块ID(SEQ_MARKETSECTION)
+	ORDERINDEX       int32     `json:"orderindex" xorm:"ORDERINDEX"`             // 排序
+	DISPLAYNAME      string    `json:"displayname" xorm:"DISPLAYNAME"`           // 显示名称
+	MARKETIDS        string    `json:"marketids" xorm:"MARKETIDS"`               // 市场IDs - 逗号分隔
+	UPDATETIME       time.Time `json:"updatetime" xorm:"UPDATETIME"`             // 更新时间
+	TRADEMODE        int32     `json:"trademode" xorm:"TRADEMODE"`               // 交易模式
+	DISPLAYNAMEEN    string    `json:"displaynameen" xorm:"DISPLAYNAMEEN"`       // 显示名称(英文)
+	DISPLAYNAMEZH_TW string    `json:"displaynamezh_tw" xorm:"DISPLAYNAMEZH_TW"` // 显示名称(繁体)
+	DISPLAYNAMETH    string    `json:"displaynameth" xorm:"DISPLAYNAMETH"`       // 显示名称(泰文)
 }
 
 // TableName is MARKETSECTIONCONFIGNEW