Przeglądaj źródła

轮播图增加imagedetailpath字段

zou.yingbin 3 lat temu
rodzic
commit
47cb992e40

+ 1 - 1
config/config.xml

@@ -13,7 +13,7 @@
     <DbAddress value="192.168.31.88"/>
     <DbName value="orcl"/>
     <DbPort value="1521"/>
-    <DbUser value="mtp2_test176"/>
+    <DbUser value="mtp2_test203"/>
     <DbPwd value="muchinfo"/>
   </DbSetting>
   <RedisSetting>

+ 28 - 26
controllers/common/common.go

@@ -110,19 +110,20 @@ type QueryImageConfigsReq struct {
 
 // QueryImageConfigsRsp 查询轮播图配置信息返回模型
 type QueryImageConfigsRsp struct {
-	Configid   int64     `json:"configid"  xorm:"'CONFIGID'" binding:"required"` // 配置ID(SEQ_SZDZ2_IMAGECONFIG)
-	Imagetype  int32     `json:"imagetype"  xorm:"'IMAGETYPE'"`                  // 类型 - 1:首页轮播(移动) 2:我的(移动)
-	Title      string    `json:"title"  xorm:"'TITLE'"`                          // 标题
-	Imagepath  string    `json:"imagepath"  xorm:"'IMAGEPATH'"`                  // 图片
-	URL        string    `json:"url"  xorm:"'URL'"`                              // 链接(地址或商品ID)
-	Sort       int64     `json:"sort"  xorm:"'SORT'"`                            // 排序
-	Isshow     int32     `json:"isshow"  xorm:"'ISSHOW'"`                        // 是否展示 - 0:不展示 1:展示
-	Createdate time.Time `json:"createdate"  xorm:"'CREATEDATE'"`                // 创建时间
-	Creatorid  int64     `json:"creatorid"  xorm:"'CREATORID'"`                  // 创建人
-	Updatedate time.Time `json:"updatedate"  xorm:"'UPDATEDATE'"`                // 修改时间
-	Modifierid int64     `json:"modifierid"  xorm:"'MODIFIERID'"`                // 操作人
-	Areauserid int64     `json:"areauserid"  xorm:"'AREAUSERID'"`                // 所属机构ID
-	Urltype    int32     `json:"urltype"  xorm:"'URLTYPE'"`                      // 链接类型 - 1:直接地址 2:商品ID
+	Configid        int64     `json:"configid"  xorm:"'CONFIGID'" binding:"required"` // 配置ID(SEQ_SZDZ2_IMAGECONFIG)
+	Imagetype       int32     `json:"imagetype"  xorm:"'IMAGETYPE'"`                  // 类型 - 1:首页轮播(移动) 2:我的(移动)
+	Title           string    `json:"title"  xorm:"'TITLE'"`                          // 标题
+	Imagepath       string    `json:"imagepath"  xorm:"'IMAGEPATH'"`                  // 图片
+	URL             string    `json:"url"  xorm:"'URL'"`                              // 链接(地址或商品ID)
+	Sort            int64     `json:"sort"  xorm:"'SORT'"`                            // 排序
+	Isshow          int32     `json:"isshow"  xorm:"'ISSHOW'"`                        // 是否展示 - 0:不展示 1:展示
+	Createdate      time.Time `json:"createdate"  xorm:"'CREATEDATE'"`                // 创建时间
+	Creatorid       int64     `json:"creatorid"  xorm:"'CREATORID'"`                  // 创建人
+	Updatedate      time.Time `json:"updatedate"  xorm:"'UPDATEDATE'"`                // 修改时间
+	Modifierid      int64     `json:"modifierid"  xorm:"'MODIFIERID'"`                // 操作人
+	Areauserid      int64     `json:"areauserid"  xorm:"'AREAUSERID'"`                // 所属机构ID
+	Urltype         int32     `json:"urltype"  xorm:"'URLTYPE'"`                      // 链接类型 - 1:直接地址 2:商品ID
+	IMAGEDETAILPATH string    `json:"imagedetailpath"  xorm:"'IMAGEDETAILPATH'"`      // 详情图片 [UrlType = 3时 有且必填,其它类型不需要]
 
 	MarketID  int `json:"marketid"`  // 市场ID
 	TradeMode int `json:"trademode"` // 交易模式
@@ -159,19 +160,20 @@ func QueryImageConfigs(c *gin.Context) {
 	rst := make([]QueryImageConfigsRsp, 0)
 	for _, v := range imageConfigs {
 		item := QueryImageConfigsRsp{
-			Configid:   v.Configid,
-			Imagetype:  v.Imagetype,
-			Title:      v.Title,
-			Imagepath:  v.Imagepath,
-			URL:        v.URL,
-			Sort:       v.Sort,
-			Isshow:     v.Isshow,
-			Createdate: v.Createdate,
-			Creatorid:  v.Creatorid,
-			Updatedate: v.Updatedate,
-			Modifierid: v.Modifierid,
-			Areauserid: v.Areauserid,
-			Urltype:    v.Urltype,
+			Configid:        v.Configid,
+			Imagetype:       v.Imagetype,
+			Title:           v.Title,
+			Imagepath:       v.Imagepath,
+			URL:             v.URL,
+			Sort:            v.Sort,
+			Isshow:          v.Isshow,
+			Createdate:      v.Createdate,
+			Creatorid:       v.Creatorid,
+			Updatedate:      v.Updatedate,
+			Modifierid:      v.Modifierid,
+			Areauserid:      v.Areauserid,
+			Urltype:         v.Urltype,
+			IMAGEDETAILPATH: v.IMAGEDETAILPATH,
 		}
 
 		if item.Urltype == 2 {

+ 8 - 6
controllers/ermcp/qryExposure.go

@@ -27,7 +27,7 @@ type RealtimeExposureReq struct {
 //实时敞口查询应答
 type RealtimeExposureRsp models.ErmcpRealExposureModel
 
-// QueryUserInfo 查询实时敞口
+// QueryRealtimeExposure 查询实时敞口
 // @Summary 查询实时敞口
 // @Produce json
 // @Security ApiKeyAuth
@@ -64,7 +64,7 @@ type ExposureDetailReq struct {
 //敞口现货明细响应
 type ExposureDetailRsp models.ErmcpExposureDetailModel
 
-// 查询敞口现货明细
+// QueryExposureDetail 查询敞口现货明细
 // @Summary 查询敞口现货明细
 // @Produce json
 // @Security ApiKeyAuth
@@ -97,7 +97,7 @@ type ExposureSpotReq struct {
 	AreaUserID int32 `form:"areaUserId" binding:"required"` //所属机构ID
 }
 
-// 敞口/现货头寸应答
+// ExposureSpotRsp 敞口/现货头寸应答
 type ExposureSpotRsp models.AreaSpotModel
 
 // QueryExposureSpot 查询敞口现货头寸
@@ -164,7 +164,7 @@ type HisExposureReq struct {
 // 敞口/历史敞口应答
 type HisExposureRsp models.ErmcpHisExposureS
 
-// QueryUserInfo 查询历史敞口
+// QueryHisExposure 查询历史敞口
 // @Summary 查询历史敞口(菜单:敞口/历史敞口)
 // @Produce json
 // @Security ApiKeyAuth
@@ -189,7 +189,7 @@ func QueryHisExposure(c *gin.Context) {
 	}
 }
 
-// 实时敞口/期货明细 请求
+// RealtimeExposurePositionReq 实时敞口/期货明细 请求
 type RealtimeExposurePositionReq struct {
 	AreaUserId    int64 `form:"userid" json:"areaUserId"`           // 所属机构ID
 	MiddleGoodsId int32 `form:"middleGoodsId" json:"middlegoodsid"` // 套保商品
@@ -198,6 +198,7 @@ type RealtimeExposurePositionReq struct {
 // 实时敞口/期货明细 应答
 type RealtimeExposurePositionRsp models.ErmcpExposurePostion
 
+// QueryRealtimeExposurePosition
 // @Summary 查询实时敞口期货头寸明细(菜单:实时敞口/期货明细)
 // @Produce json
 // @Security ApiKeyAuth
@@ -223,6 +224,7 @@ type ExposureHedgePositionReq struct {
 // 敞口/期货头寸 应答
 type ExposureHedgePositionRsp models.ErmcpHedgePosition
 
+// QueryExposureHedgePosition
 // @Summary 查询敞口期货头寸(菜单:敞口/期货头寸)
 // @Produce json
 // @Security ApiKeyAuth
@@ -277,7 +279,7 @@ type ExposureHedgePosDetailReq struct {
 	GoodsId    int32 `form:"goodsId" json:"goodsId"`   // 套保商品
 }
 
-// 期货明细应答
+// ExposureHedgePosDetailRsp 期货明细应答
 type ExposureHedgePosDetailRsp models.ErmcpHedgePositionDetail
 
 // QueryExposureHedgePositionDetail 查询敞口期货头寸期货明细

+ 4 - 0
docs/docs.go

@@ -14489,6 +14489,10 @@ var doc = `{
                     "description": "创建人",
                     "type": "integer"
                 },
+                "imagedetailpath": {
+                    "description": "详情图片 [UrlType = 3时 有且必填,其它类型不需要]",
+                    "type": "string"
+                },
                 "imagepath": {
                     "description": "图片",
                     "type": "string"

+ 4 - 0
docs/swagger.json

@@ -14474,6 +14474,10 @@
                     "description": "创建人",
                     "type": "integer"
                 },
+                "imagedetailpath": {
+                    "description": "详情图片 [UrlType = 3时 有且必填,其它类型不需要]",
+                    "type": "string"
+                },
                 "imagepath": {
                     "description": "图片",
                     "type": "string"

+ 3 - 0
docs/swagger.yaml

@@ -121,6 +121,9 @@ definitions:
       creatorid:
         description: 创建人
         type: integer
+      imagedetailpath:
+        description: 详情图片 [UrlType = 3时 有且必填,其它类型不需要]
+        type: string
       imagepath:
         description: 图片
         type: string