Przeglądaj źródła

Swagger增加支持GO接入服务Token

zhou.xiaoning 3 lat temu
rodzic
commit
cffc7a5816
58 zmienionych plików z 2803 dodań i 2741 usunięć
  1. 2 1
      config/cfg.j2
  2. 2 1
      config/cfg.json
  3. 22 22
      controllers/common/common.go
  4. 7 7
      controllers/common/error.go
  5. 59 59
      controllers/common/menu.go
  6. 20 20
      controllers/common/notice.go
  7. 11 11
      controllers/common/table.go
  8. 61 61
      controllers/cptrade/cpTrade.go
  9. 9 9
      controllers/delivery/delivery.go
  10. 64 64
      controllers/ermcp/qryAccMgr.go
  11. 15 15
      controllers/ermcp/qryBrandModel.go
  12. 7 7
      controllers/ermcp/qryErmcp.go
  13. 68 68
      controllers/ermcp/qryExposure.go
  14. 6 6
      controllers/ermcp/qryFuturesCompany.go
  15. 14 14
      controllers/ermcp/qryGGConvertconfig.go
  16. 15 15
      controllers/ermcp/qryGoods.go
  17. 24 24
      controllers/ermcp/qryMiddleGoods.go
  18. 51 51
      controllers/ermcp/qryOPApply.go
  19. 7 7
      controllers/ermcp/qryOPLog.go
  20. 56 56
      controllers/ermcp/qryOrder.go
  21. 7 7
      controllers/ermcp/qryPendingAuditInfo.go
  22. 22 22
      controllers/ermcp/qryUser.go
  23. 8 8
      controllers/ermcp/qryWarehouse.go
  24. 293 293
      controllers/ermcp3/qryErmcp3.go
  25. 136 136
      controllers/ermcp3/qryErmcp3Report.go
  26. 156 156
      controllers/ermcp8/qryErmcp8.go
  27. 23 23
      controllers/erms2/erms2.go
  28. 22 22
      controllers/erms3/business.go
  29. 41 41
      controllers/erms3/customer.go
  30. 16 16
      controllers/erms3/qryContract.go
  31. 24 24
      controllers/erms3/spotContract.go
  32. 37 31
      controllers/guangzuan/trade.go
  33. 13 11
      controllers/guangzuan/warehouse.go
  34. 14 12
      controllers/guangzuan/wrposition.go
  35. 219 219
      controllers/hsby/hsby.go
  36. 28 28
      controllers/market/market.go
  37. 58 58
      controllers/order/order.go
  38. 215 215
      controllers/qhj/qryQhj.go
  39. 77 77
      controllers/qhj/qryQhjAgreement.go
  40. 127 127
      controllers/qhjPCWeb/qryQhjPCWeb.go
  41. 30 30
      controllers/quote/history.go
  42. 7 7
      controllers/quote/quote.go
  43. 8 8
      controllers/search/goodsSearch.go
  44. 53 53
      controllers/szdz/szdz.go
  45. 37 37
      controllers/taaccount/taaccount.go
  46. 58 58
      controllers/tjmd/qryTjmd.go
  47. 13 13
      controllers/trade/trade.go
  48. 12 12
      controllers/tradexx/qryTradexx.go
  49. 7 7
      controllers/user/login.go
  50. 81 81
      controllers/user/user.go
  51. 372 372
      controllers/wrTrade2/qryWrTrade.go
  52. 7 7
      controllers/wrtrade/wrTrade.go
  53. 5 5
      controllers/zj/zj.go
  54. 16 0
      docs/docs.go
  55. 16 0
      docs/swagger.json
  56. 10 0
      docs/swagger.yaml
  57. 15 7
      main.go
  58. 0 0
      res/MTP_IF编译配置说明(把后辍.ini去掉再打开).docx

+ 2 - 1
config/cfg.j2

@@ -20,6 +20,7 @@
         "oem": "{{oem}}",
         "pcMangerUrl": "{{pcMangerUrl}}",
         "alipay": "{{alipay}}",
-        "wxpay": "{{wxpay}}"
+        "wxpay": "{{wxpay}}",
+        "goAccess": "{{goAccess}}"
         }
 }

+ 2 - 1
config/cfg.json

@@ -20,6 +20,7 @@
         "oem": "qhj",
         "pcMangerUrl": "http://192.168.31.176:5019/mtp2-pcweb",
         "alipay": "http://218.17.158.45:25021/bank_alipay",
-        "wxpay": "http://218.17.158.45:25020/bank_wxpay"
+        "wxpay": "http://218.17.158.45:25020/bank_wxpay",
+        "goAccess": "http://192.168.31.201:8888/api"
     }
 }

+ 22 - 22
controllers/common/common.go

@@ -25,12 +25,12 @@ type QueryProvincesAndCitiesRsp struct {
 
 // QueryProvincesAndCities 查询省市信息(不包括区)
 // @Summary 查询省市信息(不包括区)
-// @Produce json
-// @Param provinceID query int false "省ID"
-// @Success 200 {object} QueryProvincesAndCitiesRsp
-// @Failure 500 {object} app.Response
-// @Router /Common/QueryProvincesAndCities [get]
-// @Tags 通用服务
+// @Produce     json
+// @Param   provinceID query    int false "省ID"
+// @Success 200        {object} QueryProvincesAndCitiesRsp
+// @Failure 500        {object} app.Response
+// @Router  /Common/QueryProvincesAndCities [get]
+// @Tags    通用服务
 func QueryProvincesAndCities(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -83,9 +83,9 @@ func QueryProvincesAndCities(c *gin.Context) {
 // @Summary 查询区域信息
 // @Produce json
 // @Success 200 {object} models.Division
-// @Failure 500 {object} app.Response
-// @Router /Common/GetDivisions [get]
-// @Tags 通用服务
+// @Failure 500       {object} app.Response
+// @Router  /Common/GetDivisions [get]
+// @Tags    通用服务
 func GetDivisions(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -132,12 +132,12 @@ type QueryImageConfigsRsp struct {
 // QueryImageConfigs 查询轮播图配置信息
 // @Summary 查询轮播图配置信息
 // @Produce json
-// @Param userId query int false "用户id"
-// @Param imageType query int false "类型 - 1:App首页轮播 2:我的 3:首页(PC) 4:首页推广(移动-新会)"
-// @Success 200 {object} QueryImageConfigsRsp
-// @Failure 500 {object} app.Response
-// @Router /Common/QueryImageConfigs [get]
-// @Tags 通用服务
+// @Param   userId    query    int false "用户id"
+// @Param   imageType query    int false "类型 - 1:App首页轮播 2:我的 3:首页(PC) 4:首页推广(移动-新会)"
+// @Success 200       {object} QueryImageConfigsRsp
+// @Failure     500    {object} app.Response
+// @Router  /Common/QueryImageConfigs [get]
+// @Tags    通用服务
 func QueryImageConfigs(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -200,14 +200,14 @@ type GetAllEnumsReq struct {
 }
 
 // GetAllEnums 获取所有枚举信息
-// @Summary 获取所有枚举信息
+// @Summary     获取所有枚举信息
 // @Description autoid传入后则返回这个ID之后的数据;如不传则返回所有
 // @Produce json
-// @Param autoid query int false "起始自增ID"
-// @Success 200 {object} models.Enumdicitem
+// @Param       autoid query    int false "起始自增ID"
+// @Success     200    {object} models.Enumdicitem
 // @Failure 500 {object} app.Response
-// @Router /Common/GetAllEnums [get]
-// @Tags 通用服务
+// @Router      /Common/GetAllEnums [get]
+// @Tags        通用服务
 func GetAllEnums(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -237,8 +237,8 @@ func GetAllEnums(c *gin.Context) {
 // @Produce json
 // @Success 200 {object} app.Response
 // @Failure 500 {object} app.Response
-// @Router /Common/GetServerTime [get]
-// @Tags 通用服务
+// @Router  /Common/GetServerTime [get]
+// @Tags    通用服务
 func GetServerTime(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 7 - 7
controllers/common/error.go

@@ -17,13 +17,13 @@ type QueryErrorInfosReq struct {
 
 // QueryErrorInfos 获取数据库错误信息
 // @Description 如果传入rowNumber,则返回此rowNumber后的数据
-// @Summary 获取数据库错误信息
-// @Produce json
-// @Param rowNumber query string false "起始行号前索引"
-// @Success 200 {object} models.QueryErrorInfosRsp
-// @Failure 500 {object} app.Response
-// @Router /Common/QueryErrorInfos [get]
-// @Tags 通用服务
+// @Summary     获取数据库错误信息
+// @Produce     json
+// @Param       rowNumber query    string false "起始行号前索引"
+// @Success     200       {object} models.QueryErrorInfosRsp
+// @Failure     500       {object} app.Response
+// @Router      /Common/QueryErrorInfos [get]
+// @Tags        通用服务
 func QueryErrorInfos(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 59 - 59
controllers/common/menu.go

@@ -58,16 +58,16 @@ type GetClientMenusReq struct {
 }
 
 // GetClientMenus 获取交易端菜单
-// @Summary 获取交易端菜单
-// @Produce json
+// @Summary  获取交易端菜单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Param clientType query int false "终端类型,0:PCWEB 1:Mobile,不传默认返回PC端数据"
-// @Param name query string false "分支名称,ermcp-风管云平台;pingan-平安期货;trader-交易所;不传默认返回风管云平台"
-// @Success 200 {array} ClientMenu
-// @Failure 500 {object} app.Response
-// @Router /Common/GetClientMenus [get]
-// @Tags 通用服务
+// @Param    loginID    query    int    true  "登录账号"
+// @Param    clientType query    int    false "终端类型,0:PCWEB 1:Mobile,不传默认返回PC端数据"
+// @Param    name       query    string false "分支名称,ermcp-风管云平台;pingan-平安期货;trader-交易所;不传默认返回风管云平台"
+// @Success  200        {array}  ClientMenu
+// @Failure  500        {object} app.Response
+// @Router   /Common/GetClientMenus [get]
+// @Tags     通用服务
 func GetClientMenus(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -225,15 +225,15 @@ type GetPCWebMenusReq struct {
 }
 
 // GetPCWebMenus 获取PCWeb交易端菜单
-// @Summary 获取PCWeb交易端菜单
-// @Produce json
+// @Summary  获取PCWeb交易端菜单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Param name query string false "分支名称,ermcp:风管云平台,不传默认返回ermcp"
-// @Success 200 {array} PCWebMenu
-// @Failure 500 {object} app.Response
-// @Router /Common/GetPCWebMenus [get]
-// @Tags 通用服务
+// @Param    loginID query    int    true  "登录账号"
+// @Param    name    query    string false "分支名称,ermcp:风管云平台,不传默认返回ermcp"
+// @Success  200     {array}  PCWebMenu
+// @Failure  500     {object} app.Response
+// @Router   /Common/GetPCWebMenus [get]
+// @Tags     通用服务
 func GetPCWebMenus(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -377,17 +377,17 @@ func toString(v interface{}) string {
 }
 
 // FindNewFuncmenu 获取菜单表数据
-// @Summary 获取菜单表数据
-// @Produce json
+// @Summary  获取菜单表数据
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param resourcecode query string false "资源代码"
-// @Param parentcode query string false "上级资源代码"
-// @Param resourcename query string false "资源名(Title), 模糊查询"
-// @Param menutype query string false "菜单类型(格式:1,2,3) - 1:管理端 2:PC(C#) 3:移动(云平台) 4:终端(交易所) 5:PC(云平台)"
-// @Success 200 {array} models.NewFuncmenulist
-// @Failure 500 {object} app.Response
-// @Router /Common/FindNewFuncmenu [get]
-// @Tags 通用服务
+// @Param    resourcecode query    string false "资源代码"
+// @Param    parentcode   query    string false "上级资源代码"
+// @Param    resourcename query    string false "资源名(Title), 模糊查询"
+// @Param    menutype     query    string false "菜单类型(格式:1,2,3) - 1:管理端 2:PC(C#) 3:移动(云平台) 4:终端(交易所) 5:PC(云平台)"
+// @Success  200          {array}  models.NewFuncmenulist
+// @Failure  500          {object} app.Response
+// @Router   /Common/FindNewFuncmenu [get]
+// @Tags     通用服务
 func FindNewFuncmenu(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -414,15 +414,15 @@ func FindNewFuncmenu(c *gin.Context) {
 }
 
 // InsertNewFuncmenu 插入菜单表数据
-// @Summary 插入菜单表数据
-// @accept application/json
-// @Produce application/json
+// @Summary  插入菜单表数据
+// @accept   application/json
+// @Produce  application/json
 // @Security ApiKeyAuth
-// @Param data body models.NewFuncmenulist true "菜单表数据"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Common/InsertNewFuncmenu [post]
-// @Tags 通用服务
+// @Param    data body     models.NewFuncmenulist true "菜单表数据"
+// @Success  200  {object} app.Response
+// @Failure  500  {object} app.Response
+// @Router   /Common/InsertNewFuncmenu [post]
+// @Tags     通用服务
 func InsertNewFuncmenu(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -448,15 +448,15 @@ func InsertNewFuncmenu(c *gin.Context) {
 }
 
 // UpdateNewFuncmenu 更新菜单表数据
-// @Summary 更新菜单表数据
-// @accept application/json
-// @Produce application/json
+// @Summary  更新菜单表数据
+// @accept   application/json
+// @Produce  application/json
 // @Security ApiKeyAuth
-// @Param data body models.NewFuncmenulist true "菜单表数据"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Common/UpdateNewFuncmenu [put]
-// @Tags 通用服务
+// @Param    data body     models.NewFuncmenulist true "菜单表数据"
+// @Success  200  {object} app.Response
+// @Failure  500  {object} app.Response
+// @Router   /Common/UpdateNewFuncmenu [put]
+// @Tags     通用服务
 func UpdateNewFuncmenu(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -482,15 +482,15 @@ func UpdateNewFuncmenu(c *gin.Context) {
 }
 
 // DeleteNewFuncmenu 删除菜单表数据
-// @Summary 删除菜单表数据
-// @accept application/json
-// @Produce application/json
+// @Summary  删除菜单表数据
+// @accept   application/json
+// @Produce  application/json
 // @Security ApiKeyAuth
-// @Param data body models.NewFuncmenulist true "菜单表数据,只需要resourcecode字段即可"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Common/DeleteNewFuncmenu [delete]
-// @Tags 通用服务
+// @Param    data body     models.NewFuncmenulist true "菜单表数据,只需要resourcecode字段即可"
+// @Success  200  {object} app.Response
+// @Failure  500  {object} app.Response
+// @Router   /Common/DeleteNewFuncmenu [delete]
+// @Tags     通用服务
 func DeleteNewFuncmenu(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -521,15 +521,15 @@ type GetClientNewFuncmenuReq struct {
 }
 
 // GetClientNewFuncmenu 获取终端菜单
-// @Summary 获取终端菜单
-// @Produce json
+// @Summary  获取终端菜单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginid query int true "登录账号"
-// @Param menutype query int true "菜单类型 - 1:管理端 2:PC(C#) 3:移动(云平台) 4:终端(交易所) 5:PC(云平台)"
-// @Success 200 {array} models.NewFuncmenulist
-// @Failure 500 {object} app.Response
-// @Router /Common/GetClientNewFuncmenu [get]
-// @Tags 通用服务
+// @Param    loginid  query    int true "登录账号"
+// @Param    menutype query    int true "菜单类型 - 1:管理端 2:PC(C#) 3:移动(云平台) 4:终端(交易所) 5:PC(云平台)"
+// @Success  200      {array}  models.NewFuncmenulist
+// @Failure  500      {object} app.Response
+// @Router   /Common/GetClientNewFuncmenu [get]
+// @Tags     通用服务
 func GetClientNewFuncmenu(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 20 - 20
controllers/common/notice.go

@@ -30,19 +30,19 @@ type QueryNoticeRsp struct {
 }
 
 // QueryNotice 通知公告系统消息查询
-// @Summary 通知公告系统消息查询
-// @Produce json
+// @Summary  通知公告系统消息查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param loginID query int true "登录账号"
-// @Param msgType query int false "消息类型 - 1:公告通知 2:系统消息"
-// @Param onlyUnRead query bool false "是否只获取未读信息"
-// @Param lastID query int false "自增ID,传入后会返回这个ID后面的记录"
-// @Success 200 {object} QueryNoticeRsp
-// @Failure 500 {object} app.Response
-// @Router /Common/QueryNotice [get]
-// @Tags 通用服务
+// @Param    page       query    int  false "页码"
+// @Param    pagesize   query    int  false "每页条数"
+// @Param    loginID    query    int  true  "登录账号"
+// @Param    msgType    query    int  false "消息类型 - 1:公告通知 2:系统消息"
+// @Param    onlyUnRead query    bool false "是否只获取未读信息"
+// @Param    lastID     query    int  false "自增ID,传入后会返回这个ID后面的记录"
+// @Success  200        {object} QueryNoticeRsp
+// @Failure  500        {object} app.Response
+// @Router   /Common/QueryNotice [get]
+// @Tags     通用服务
 func QueryNotice(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -185,15 +185,15 @@ type NoticeReadedReq struct {
 }
 
 // NoticeReaded 通知公告设置已读请求
-// @Summary 通知公告设置已读请求
-// @Produce json
+// @Summary  通知公告设置已读请求
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Param noticeID query int true "通知公告ID"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Common/NoticeReaded [post]
-// @Tags 通用服务
+// @Param    loginID  query    int true "登录账号"
+// @Param    noticeID query    int true "通知公告ID"
+// @Success  200      {object} app.Response
+// @Failure  500      {object} app.Response
+// @Router   /Common/NoticeReaded [post]
+// @Tags     通用服务
 func NoticeReaded(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 11 - 11
controllers/common/table.go

@@ -24,11 +24,11 @@ type QueryTraderMenuRsp struct {
 // QueryTraderMenu 查询交易端菜单
 // @Summary 查询交易端菜单
 // @Produce json
-// @Param loginid query int true "登录账号"
-// @Success 200 {object} QueryTraderMenuRsp
-// @Failure 500 {object} app.Response
-// @Router /Common/QueryTraderMenu [get]
-// @Tags 通用服务
+// @Param   loginid query    int true "登录账号"
+// @Success 200     {object} QueryTraderMenuRsp
+// @Failure 500     {object} app.Response
+// @Router  /Common/QueryTraderMenu [get]
+// @Tags    通用服务
 func QueryTraderMenu(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -78,12 +78,12 @@ type QueryTableDefineRsp struct {
 // QueryTableDefine 查询交易端列表头信息
 // @Summary 查询交易端列表头信息
 // @Produce json
-// @Param tableKey query string false "表key"
-// @Param tableType query int false "列表类型 - 1:管理端 2:H5终端 3:移动终端"
-// @Success 200 {object} QueryTableDefineRsp
-// @Failure 500 {object} app.Response
-// @Router /Common/QueryTableDefine [get]
-// @Tags 通用服务
+// @Param   tableKey  query    string false "表key"
+// @Param   tableType query    int    false "列表类型 - 1:管理端 2:H5终端 3:移动终端"
+// @Success 200       {object} QueryTableDefineRsp
+// @Failure 500       {object} app.Response
+// @Router  /Common/QueryTableDefine [get]
+// @Tags    通用服务
 func QueryTableDefine(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 61 - 61
controllers/cptrade/cpTrade.go

@@ -48,16 +48,16 @@ type Cptradepresaleapply struct {
 }
 
 // QueryPreasleApply 查询产能预售申请信息
-// @Summary 查询产能预售申请信息
-// @Produce json
+// @Summary  查询产能预售申请信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "账户ID"
-// @Param applyid query int false "申请ID"
-// @Param accountid query int false "资金账户ID"
-// @Success 200 {object} Cptradepresaleapply
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryPreasleApply [get]
-// @Tags 产能预售
+// @Param    userid    query    int true  "账户ID"
+// @Param    applyid   query    int false "申请ID"
+// @Param    accountid query    int false "资金账户ID"
+// @Success  200       {object} Cptradepresaleapply
+// @Failure  500       {object} app.Response
+// @Router   /CPTrade/QueryPreasleApply [get]
+// @Tags     产能预售
 func QueryPreasleApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -162,14 +162,14 @@ type Cptradeusergoodsdata struct {
 // }
 
 // QueryUserGoodsData 查询远期订单信息
-// @Summary 查询远期订单信息
-// @Produce json
+// @Summary  查询远期订单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountid query int true "资金账户ID"
-// @Success 200 {object} Cptradeusergoodsdata
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryUserGoodsData [get]
-// @Tags 产能预售
+// @Param    accountid query    int true "资金账户ID"
+// @Success  200       {object} Cptradeusergoodsdata
+// @Failure  500       {object} app.Response
+// @Router   /CPTrade/QueryUserGoodsData [get]
+// @Tags     产能预售
 func QueryUserGoodsData(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -250,16 +250,16 @@ type Cptradepositioncancel struct {
 }
 
 // QueryPositionCancel 查询远期订单注销申请信息
-// @Summary 查询远期订单注销申请信息
-// @Produce json
+// @Summary  查询远期订单注销申请信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "账户ID"
-// @Param cancelid query int false "注销ID"
-// @Param accountid query int false "资金账户ID"
-// @Success 200 {object} Cptradepositioncancel
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryPositionCancel [get]
-// @Tags 产能预售
+// @Param    userid    query    int true  "账户ID"
+// @Param    cancelid  query    int false "注销ID"
+// @Param    accountid query    int false "资金账户ID"
+// @Success  200       {object} Cptradepositioncancel
+// @Failure  500       {object} app.Response
+// @Router   /CPTrade/QueryPositionCancel [get]
+// @Tags     产能预售
 func QueryPositionCancel(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -351,18 +351,18 @@ type QueryPresaleGoodsExRsp struct {
 }
 
 // QueryPresaleGoodsEx 查询产能预售商品扩展信息
-// @Summary 查询产能预售商品扩展信息
-// @Produce json
+// @Summary  查询产能预售商品扩展信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsid query int false "预售商品ID"
-// @Param marketid query int false "预售市场ID"
-// @Param presalemode query int false "预售模式 - 1:一口价 2:大宗式竞拍"
-// @Param goodsids query string false "预售商品ID列表 - 格式:1,2,3"
-// @Param goodscode query string false "预售商品代码"
-// @Success 200 {object} QueryPresaleGoodsExRsp
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryPresaleGoodsEx [get]
-// @Tags 产能预售
+// @Param    goodsid     query    int    false "预售商品ID"
+// @Param    marketid    query    int    false "预售市场ID"
+// @Param    presalemode query    int    false "预售模式 - 1:一口价 2:大宗式竞拍"
+// @Param    goodsids    query    string false "预售商品ID列表 - 格式:1,2,3"
+// @Param    goodscode   query    string false "预售商品代码"
+// @Success  200         {object} QueryPresaleGoodsExRsp
+// @Failure  500         {object} app.Response
+// @Router   /CPTrade/QueryPresaleGoodsEx [get]
+// @Tags     产能预售
 func QueryPresaleGoodsEx(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -462,16 +462,16 @@ type QueryCPTradeMyBidRsp struct {
 }
 
 // QueryCPTradeMyBidInfos 查询产能预售我的出价信息
-// @Summary 查询产能预售我的出价信息
-// @Produce json
+// @Summary  查询产能预售我的出价信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountid query int true "资金账户"
-// @Param marketid query int false "预售市场ID"
-// @Param goodsid query int false "预售商品ID"
-// @Success 200 {object} QueryCPTradeMyBidRsp
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryCPTradeMyBidInfos [get]
-// @Tags 产能预售
+// @Param    accountid query    int true  "资金账户"
+// @Param    marketid  query    int false "预售市场ID"
+// @Param    goodsid   query    int false "预售商品ID"
+// @Success  200       {object} QueryCPTradeMyBidRsp
+// @Failure  500       {object} app.Response
+// @Router   /CPTrade/QueryCPTradeMyBidInfos [get]
+// @Tags     产能预售
 func QueryCPTradeMyBidInfos(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -574,14 +574,14 @@ type QueryMyCPTradeGoodsRsp struct {
 }
 
 // QueryMyCPTradeGoods 查询我的预售信息
-// @Summary 查询我的预售信息
-// @Produce json
+// @Summary  查询我的预售信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountid query int true "资金账户"
-// @Success 200 {object} QueryMyCPTradeGoodsRsp
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryMyCPTradeGoods [get]
-// @Tags 产能预售
+// @Param    accountid query    int true "资金账户"
+// @Success  200       {object} QueryMyCPTradeGoodsRsp
+// @Failure  500       {object} app.Response
+// @Router   /CPTrade/QueryMyCPTradeGoods [get]
+// @Tags     产能预售
 func QueryMyCPTradeGoods(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -721,16 +721,16 @@ type QueryCPTradeOrderDetailRsq struct {
 }
 
 // QueryCPTradeOrderDetail 查询产能预售委托单信息
-// @Summary 查询产能预售委托单信息
-// @Produce json
+// @Summary  查询产能预售委托单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsid query int false "预售商品ID"
-// @Param marketid query int false "预售市场ID"
-// @Param goodsids query string false "预售商品ID列表 - 格式:1,2,3"
-// @Success 200 {object} QueryCPTradeOrderDetailRsq
-// @Failure 500 {object} app.Response
-// @Router /CPTrade/QueryCPTradeOrderDetail [get]
-// @Tags 产能预售
+// @Param    goodsid  query    int    false "预售商品ID"
+// @Param    marketid query    int    false "预售市场ID"
+// @Param    goodsids query    string false "预售商品ID列表 - 格式:1,2,3"
+// @Success  200      {object} QueryCPTradeOrderDetailRsq
+// @Failure  500      {object} app.Response
+// @Router   /CPTrade/QueryCPTradeOrderDetail [get]
+// @Tags     产能预售
 func QueryCPTradeOrderDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 9 - 9
controllers/delivery/delivery.go

@@ -54,16 +54,16 @@ type QueryDeliveryRelationRsp struct {
 }
 
 // QueryDeliveryRelation 查询商品交割关系表
-// @Summary 查询商品交割关系表
-// @Produce json
+// @Summary  查询商品交割关系表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsid query int false "商品ID"
-// @Param deliverygoodsid query int false "品种ID"
-// @Param marketid query int false "市场ID"
-// @Success 200 {object} QueryDeliveryRelationRsp
-// @Failure 500 {object} app.Response
-// @Router /Delivery/QueryDeliveryRelation [get]
-// @Tags 交割服务
+// @Param    goodsid         query    int false "商品ID"
+// @Param    deliverygoodsid query    int false "品种ID"
+// @Param    marketid        query    int false "市场ID"
+// @Success  200             {object} QueryDeliveryRelationRsp
+// @Failure  500             {object} app.Response
+// @Router   /Delivery/QueryDeliveryRelation [get]
+// @Tags     交割服务
 func QueryDeliveryRelation(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 64 - 64
controllers/ermcp/qryAccMgr.go

@@ -22,16 +22,16 @@ type QryLoginUserReq struct {
 }
 
 // QueryAccMgrLoginUser
-// @Summary 查询账户管理登录账号(账户管理/登录账号)
-// @Produce json
+// @Summary  查询账户管理登录账号(账户管理/登录账号)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param querytype query int true "查询类型 1-业务账户 2-交易账户 3-管理账户"
-// @Success 200 {array} models.ErmcpLoginUserEx
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrLoginUser [get]
-// @Tags 企业风险管理(app)
+// @Param    userid    query    int true  "用户ID"
+// @Param    usertype  query    int false "用户类型 2-机构 7-企业成员"
+// @Param    querytype query    int true  "查询类型 1-业务账户 2-交易账户 3-管理账户"
+// @Success  200       {array}  models.ErmcpLoginUserEx
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryAccMgrLoginUser [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrLoginUser(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryLoginUserReq{}
@@ -42,14 +42,14 @@ func QueryAccMgrLoginUser(c *gin.Context) {
 }
 
 // QueryAccMgrTaaccount
-// @Summary 查询账户管理期货账号(账户管理/期货账号)
-// @Produce json
+// @Summary  查询账户管理期货账号(账户管理/期货账号)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.ErmcpTaAccountEx
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrTaaccount [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.ErmcpTaAccountEx
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryAccMgrTaaccount [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrTaaccount(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -61,15 +61,15 @@ func QueryAccMgrTaaccount(c *gin.Context) {
 }
 
 // QueryAccMgrMainAccountInfo
-// @Summary 查询账户管理主账号详情(账户管理/期货主账号详情)
-// @Produce json
+// @Summary  查询账户管理主账号详情(账户管理/期货主账号详情)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户ID"
-// @Param accountid query int false "主账号id"
-// @Success 200 {array} models.MainAccountInfo
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrMainAccountInfo [get]
-// @Tags 企业风险管理(app)
+// @Param    userid    query    int false "用户ID"
+// @Param    accountid query    int false "主账号id"
+// @Success  200       {array}  models.MainAccountInfo
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryAccMgrMainAccountInfo [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrMainAccountInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -82,14 +82,14 @@ func QueryAccMgrMainAccountInfo(c *gin.Context) {
 }
 
 // QueryAccMgrRole
-// @Summary 查询账户管理角色设置(账户管理/角色设置)
-// @Produce json
+// @Summary  查询账户管理角色设置(账户管理/角色设置)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.ErmcpRole
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrRole [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.ErmcpRole
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryAccMgrRole [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrRole(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -108,16 +108,16 @@ type QryRoleMenuReq struct {
 }
 
 // QueryAccMgrRoleMenu
-// @Summary 查询账户管理角色详情(账户管理/角色设置/角色详情)
-// @Produce json
+// @Summary  查询账户管理角色详情(账户管理/角色设置/角色详情)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param roleid query string false "角色id(可多个,逗号隔开)"
-// @Param menutype query int false "菜单类型 1:管理端 2:交易端 3:终端(企业云平台) 4:仓单贸易 ps:新加的参数,为了兼容以前,不传则默认查3"
-// @Success 200 {array} models.ErmcpRoleMenuEx
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrRoleMenu [get]
-// @Tags 企业风险管理(app)
+// @Param    userid   query    int    true  "用户ID"
+// @Param    roleid   query    string false "角色id(可多个,逗号隔开)"
+// @Param    menutype query    int    false "菜单类型 1:管理端 2:交易端 3:终端(企业云平台) 4:仓单贸易 ps:新加的参数,为了兼容以前,不传则默认查3"
+// @Success  200      {array}  models.ErmcpRoleMenuEx
+// @Failure  500      {object} app.Response
+// @Router   /Ermcp/QueryAccMgrRoleMenu [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrRoleMenu(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryRoleMenuReq{}
@@ -128,15 +128,15 @@ func QueryAccMgrRoleMenu(c *gin.Context) {
 }
 
 // QueryRoleMenu
-// @Summary 查询角色菜单和权限
-// @Produce json
+// @Summary  查询角色菜单和权限
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginid query int true "登录ID"
-// @Param menutype query int false "菜单类型 1:管理端 2:交易端 3:终端(企业云平台) 4:仓单贸易"
-// @Success 200 {array} models.RoleMenu
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryRoleMenu [get]
-// @Tags 企业风险管理(app)
+// @Param    loginid  query    int true  "登录ID"
+// @Param    menutype query    int false "菜单类型 1:管理端 2:交易端 3:终端(企业云平台) 4:仓单贸易"
+// @Success  200      {array}  models.RoleMenu
+// @Failure  500      {object} app.Response
+// @Router   /Ermcp/QueryRoleMenu [get]
+// @Tags     企业风险管理(app)
 func QueryRoleMenu(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.RoleMenu{}
@@ -145,15 +145,15 @@ func QueryRoleMenu(c *gin.Context) {
 }
 
 // QueryAccMgrBizGroupSet
-// @Summary 查询业务类型分组(账户管理/账户设置)
-// @Produce json
+// @Summary  查询业务类型分组(账户管理/账户设置)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param deliverygoodsid query int false "现货商品id"
-// @Success 200 {array} models.ErmcpBizGroupEx
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrBizGroupSet [get]
-// @Tags 企业风险管理(app)
+// @Param    userid          query    int true  "用户ID"
+// @Param    deliverygoodsid query    int false "现货商品id"
+// @Success  200             {array}  models.ErmcpBizGroupEx
+// @Failure  500             {object} app.Response
+// @Router   /Ermcp/QueryAccMgrBizGroupSet [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrBizGroupSet(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -173,15 +173,15 @@ type QryTaAccountReq struct {
 }
 
 // QueryAccMgrTaAccountInfo
-// @Summary 查询账户管理授信(账户管理/账户设置/授信)
-// @Produce json
+// @Summary  查询账户管理授信(账户管理/账户设置/授信)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param accountid query int false "账号id"
-// @Success 200 {array} models.ErmcpTaAccountInfo
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAccMgrTaAccountInfo [get]
-// @Tags 企业风险管理(app)
+// @Param    userid    query    int true  "用户ID"
+// @Param    accountid query    int false "账号id"
+// @Success  200       {array}  models.ErmcpTaAccountInfo
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryAccMgrTaAccountInfo [get]
+// @Tags     企业风险管理(app)
 func QueryAccMgrTaAccountInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryTaAccountReq{}

+ 15 - 15
controllers/ermcp/qryBrandModel.go

@@ -19,15 +19,15 @@ type QueryBrandModelReq struct {
 }
 
 // QueryGoodsBrand
-// @Summary 查询商品品牌
-// @Produce json
+// @Summary  查询商品品牌
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param wrstandardid query int false "现货商品ID"
-// @Success 200 {array} models.ErmcpGoodsBrand
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryGoodsBrand [get]
-// @Tags 企业风险管理(app)
+// @Param    userid       query    int true  "用户ID"
+// @Param    wrstandardid query    int false "现货商品ID"
+// @Success  200          {array}  models.ErmcpGoodsBrand
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp/QueryGoodsBrand [get]
+// @Tags     企业风险管理(app)
 func QueryGoodsBrand(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryBrandModelReq{}
@@ -37,14 +37,14 @@ func QueryGoodsBrand(c *gin.Context) {
 }
 
 // QueryGoodsModel
-// @Summary 查询商品型号
-// @Produce json
+// @Summary  查询商品型号
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.ErmcpGoodsModel
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryGoodsModel [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.ErmcpGoodsModel
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryGoodsModel [get]
+// @Tags     企业风险管理(app)
 func QueryGoodsModel(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QueryBrandModelReq{}

+ 7 - 7
controllers/ermcp/qryErmcp.go

@@ -85,14 +85,14 @@ func QueryContract(c *gin.Context) {
 }
 
 // QueryTradeConfigTMP
-// @Summary 查询交易模板配置
-// @Produce json
+// @Summary  查询交易模板配置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param areauserid query int false "所属机构id"
-// @Success 200 {array} models.ErmcpTradeConfigTMP
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryTradeConfigTMP [get]
-// @Tags 企业风险管理(app)
+// @Param    areauserid query    int false "所属机构id"
+// @Success  200        {array}  models.ErmcpTradeConfigTMP
+// @Failure  500        {object} app.Response
+// @Router   /Ermcp/QueryTradeConfigTMP [get]
+// @Tags     企业风险管理(app)
 func QueryTradeConfigTMP(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {

+ 68 - 68
controllers/ermcp/qryExposure.go

@@ -28,14 +28,14 @@ type RealtimeExposureReq struct {
 type RealtimeExposureRsp models.ErmcpRealExposureModel
 
 // QueryRealtimeExposure 查询实时敞口
-// @Summary 查询实时敞口
-// @Produce json
+// @Summary  查询实时敞口
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "所属机构ID"
-// @Success 200 {array} RealtimeExposureRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryRealtimeExposure [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "所属机构ID"
+// @Success  200    {array}  RealtimeExposureRsp
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryRealtimeExposure [get]
+// @Tags     企业风险管理(app)
 func QueryRealtimeExposure(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req RealtimeExposureReq
@@ -65,15 +65,15 @@ type ExposureDetailReq struct {
 type ExposureDetailRsp models.ErmcpExposureDetailModel
 
 // QueryExposureDetail 查询敞口现货明细
-// @Summary 查询敞口现货明细
-// @Produce json
+// @Summary  查询敞口现货明细
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
-// @Param middleGoodsId query int true "套保商品"
-// @Success 200 {array} ExposureDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryExposureDetail [get]
-// @Tags 企业风险管理(app)
+// @Param    areaUserId    query    int true "所属机构ID"
+// @Param    middleGoodsId query    int true "套保商品"
+// @Success  200           {array}  ExposureDetailRsp
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp/QueryExposureDetail [get]
+// @Tags     企业风险管理(app)
 func QueryExposureDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req ExposureDetailReq
@@ -101,14 +101,14 @@ type ExposureSpotReq struct {
 type ExposureSpotRsp models.AreaSpotModel
 
 // QueryExposureSpot 查询敞口现货头寸
-// @Summary 查询敞口现货头寸(敞口/现货头寸)
-// @Produce json
+// @Summary  查询敞口现货头寸(敞口/现货头寸)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
-// @Success 200 {array} ExposureSpotRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryExposureSpot [get]
-// @Tags 企业风险管理(app)
+// @Param    areaUserId query    int true "所属机构ID"
+// @Success  200        {array}  ExposureSpotRsp
+// @Failure  500        {object} app.Response
+// @Router   /Ermcp/QueryExposureSpot [get]
+// @Tags     企业风险管理(app)
 func QueryExposureSpot(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req ExposureSpotReq
@@ -135,15 +135,15 @@ type ExposureSpotDetailReq struct {
 // 敞口/现货头寸/现货明细应答
 type ExposureSpotDetailRsp models.ErmcpAreaSpotDetailModel
 
-// @Summary 查询敞口现货头寸明细(敞口/现货头寸/现货明细)
-// @Produce json
+// @Summary  查询敞口现货头寸明细(敞口/现货头寸/现货明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param areaUserId query int true "所属机构ID"
-// @Param wrstandardId query int true "现货品种ID"
-// @Success 200 {array} ExposureSpotDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryExposureSpotDetail [get]
-// @Tags 企业风险管理(app)
+// @Param    areaUserId   query    int true "所属机构ID"
+// @Param    wrstandardId query    int true "现货品种ID"
+// @Success  200          {array}  ExposureSpotDetailRsp
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp/QueryExposureSpotDetail [get]
+// @Tags     企业风险管理(app)
 func QueryExposureSpotDetail(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	var req ExposureSpotDetailReq
@@ -165,15 +165,15 @@ type HisExposureReq struct {
 type HisExposureRsp models.ErmcpHisExposureS
 
 // QueryHisExposure 查询历史敞口
-// @Summary 查询历史敞口(菜单:敞口/历史敞口)
-// @Produce json
+// @Summary  查询历史敞口(菜单:敞口/历史敞口)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param lastNum query int true "每个品种记录数"
-// @Success 200 {array} HisExposureRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryHisExposure [get]
-// @Tags 企业风险管理(app)
+// @Param    userid  query    int true "用户id"
+// @Param    lastNum query    int true "每个品种记录数"
+// @Success  200     {array}  HisExposureRsp
+// @Failure  500     {object} app.Response
+// @Router   /Ermcp/QueryHisExposure [get]
+// @Tags     企业风险管理(app)
 func QueryHisExposure(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req HisExposureReq
@@ -199,15 +199,15 @@ type RealtimeExposurePositionReq struct {
 type RealtimeExposurePositionRsp models.ErmcpExposurePostion
 
 // QueryRealtimeExposurePosition
-// @Summary 查询实时敞口期货头寸明细(菜单:实时敞口/期货明细)
-// @Produce json
+// @Summary  查询实时敞口期货头寸明细(菜单:实时敞口/期货明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param middleGoodsId query int true "套保商品ID"
-// @Success 200 {array} RealtimeExposurePositionRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryRealtimeExposurePosition [get]
-// @Tags 企业风险管理(app)
+// @Param    userid        query    int true "用户id"
+// @Param    middleGoodsId query    int true "套保商品ID"
+// @Success  200           {array}  RealtimeExposurePositionRsp
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp/QueryRealtimeExposurePosition [get]
+// @Tags     企业风险管理(app)
 func QueryRealtimeExposurePosition(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	var req RealtimeExposurePositionReq
@@ -225,14 +225,14 @@ type ExposureHedgePositionReq struct {
 type ExposureHedgePositionRsp models.ErmcpHedgePosition
 
 // QueryExposureHedgePosition
-// @Summary 查询敞口期货头寸(菜单:敞口/期货头寸)
-// @Produce json
+// @Summary  查询敞口期货头寸(菜单:敞口/期货头寸)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Success 200 {array} ExposureHedgePositionRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryExposureHedgePosition [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "用户id"
+// @Success  200    {array}  ExposureHedgePositionRsp
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryExposureHedgePosition [get]
+// @Tags     企业风险管理(app)
 func QueryExposureHedgePosition(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req ExposureHedgePositionReq
@@ -283,15 +283,15 @@ type ExposureHedgePosDetailReq struct {
 type ExposureHedgePosDetailRsp models.ErmcpHedgePositionDetail
 
 // QueryExposureHedgePositionDetail 查询敞口期货头寸期货明细
-// @Summary 查询敞口期货头寸期货明细(菜单:敞口/期货头寸/期货明细)
-// @Produce json
+// @Summary  查询敞口期货头寸期货明细(菜单:敞口/期货头寸/期货明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "所属机构ID"
-// @Param goodsId query int true "商品id"
-// @Success 200 {array} ExposureHedgePosDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryExposureHedgePositionDetail [get]
-// @Tags 企业风险管理(app)
+// @Param    userid  query    int true "所属机构ID"
+// @Param    goodsId query    int true "商品id"
+// @Success  200     {array}  ExposureHedgePosDetailRsp
+// @Failure  500     {object} app.Response
+// @Router   /Ermcp/QueryExposureHedgePositionDetail [get]
+// @Tags     企业风险管理(app)
 func QueryExposureHedgePositionDetail(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	var req ExposureHedgePosDetailReq
@@ -301,14 +301,14 @@ func QueryExposureHedgePositionDetail(c *gin.Context) {
 }
 
 // QueryExposureGoods
-// @Summary 查询敞口主力合约
-// @Produce json
+// @Summary  查询敞口主力合约
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param middlegoodsid query int true "套保商品id"
-// @Success 200 {array} models.ErmcpMiddlegoodsRelateGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryExposureGoods [get]
-// @Tags 企业风险管理(app)
+// @Param    middlegoodsid query    int true "套保商品id"
+// @Success  200           {array}  models.ErmcpMiddlegoodsRelateGoods
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp/QueryExposureGoods [get]
+// @Tags     企业风险管理(app)
 func QueryExposureGoods(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {

+ 6 - 6
controllers/ermcp/qryFuturesCompany.go

@@ -13,13 +13,13 @@ import (
 )
 
 // QueryFuturesCompany
-// @Summary 查询期货公司
-// @Produce json
+// @Summary  查询期货公司
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {array} models.ErmcpFuturesCompany
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryFuturesCompany [get]
-// @Tags 企业风险管理(app)
+// @Success  200 {array}  models.ErmcpFuturesCompany
+// @Failure  500 {object} app.Response
+// @Router   /Ermcp/QueryFuturesCompany [get]
+// @Tags     企业风险管理(app)
 func QueryFuturesCompany(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.ErmcpFuturesCompany{}

+ 14 - 14
controllers/ermcp/qryGGConvertconfig.go

@@ -20,14 +20,14 @@ type QryGGCovertCfgReq struct {
 // 查询期货品种配置应答
 type QryGGCovertCfgRsp models.ErmcpGGConvertCfg
 
-// @Summary 查询期货品种配置(菜单:商品信息/期货品种)
-// @Produce json
+// @Summary  查询期货品种配置(菜单:商品信息/期货品种)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsgroupid query int false  "品种id(不填则查所有)"
-// @Success 200 {array} QryGGCovertCfgRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryGGConvertConfig [get]
-// @Tags 企业风险管理(app)
+// @Param    goodsgroupid query    int false "品种id(不填则查所有)"
+// @Success  200          {array}  QryGGCovertCfgRsp
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp/QueryGGConvertConfig [get]
+// @Tags     企业风险管理(app)
 func QueryGGConvertConfig(c *gin.Context) {
 	appG := app.GinUtils{Gin:app.Gin{C: c}}
 	var req QryGGCovertCfgReq
@@ -44,14 +44,14 @@ type QryAvalidGPReq struct {
 // 查询可配置期货品种响应
 type QryAvalidGPRsp models.ErmcpAvalidGoodsGroupModel
 
-// @Summary 查询可配置期货品种(菜单:商品信息/现货商品/新增现货商品/新增套保品种)
-// @Produce json
+// @Summary  查询可配置期货品种(菜单:商品信息/现货商品/新增现货商品/新增套保品种)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true  "所属机构ID"
-// @Success 200 {array} QryAvalidGPRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryAvaildGoodsGroup [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "所属机构ID"
+// @Success  200    {array}  QryAvalidGPRsp
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryAvaildGoodsGroup [get]
+// @Tags     企业风险管理(app)
 func QueryAvaildGoodsGroup(c *gin.Context) {
 	appG := app.GinUtils{Gin:app.Gin{C: c}}
 	var req QryAvalidGPReq;

+ 15 - 15
controllers/ermcp/qryGoods.go

@@ -17,15 +17,15 @@ type GetErmcpGoodsReq struct {
 }
 
 // GetErmcpGoods 查询企业风管期货商品信息
-// @Summary 查询企业风管期货商品信息
-// @Produce json
+// @Summary  查询企业风管期货商品信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户id(风管云平台版本传值, 只显示用户下设置了套保关联的品种)"
-// @Param lastUpdateTime query string false "最后修改时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
-// @Success 200 {object} models.ErmcpGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/GetErmcpGoods [get]
-// @Tags 企业风险管理(app)
+// @Param    userid         query    int    false "用户id(风管云平台版本传值, 只显示用户下设置了套保关联的品种)"
+// @Param    lastUpdateTime query    string false "最后修改时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
+// @Success  200            {object} models.ErmcpGoods
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp/GetErmcpGoods [get]
+// @Tags     企业风险管理(app)
 func GetErmcpGoods(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -57,14 +57,14 @@ type GetErmcpGoodsSortByPositionReq struct {
 }
 
 // GetErmcpGoodsSortByPosition 查询企业风管期货主力、次主力商品信息
-// @Summary 查询企业风管期货主力、次主力商品信息
-// @Produce json
+// @Summary  查询企业风管期货主力、次主力商品信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param sortIndex query string false "主力: 1; 次主力: 2; 主力+次主力:1,2"
-// @Success 200 {object} models.Goodssortbypreposition
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/GetErmcpGoodsSortByPosition [get]
-// @Tags 企业风险管理(app)
+// @Param    sortIndex query    string false "主力: 1; 次主力: 2; 主力+次主力:1,2"
+// @Success  200       {object} models.Goodssortbypreposition
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/GetErmcpGoodsSortByPosition [get]
+// @Tags     企业风险管理(app)
 func GetErmcpGoodsSortByPosition(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 24 - 24
controllers/ermcp/qryMiddleGoods.go

@@ -23,15 +23,15 @@ type QryMiddleGoodsReq struct {
 // 查询套保品种应答
 type QryMiddleGoodsRsp models.ErmcpMiddleGoodsModel
 
-// @Summary 查询套保品种(菜单:套保品种)
-// @Produce json
+// @Summary  查询套保品种(菜单:套保品种)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true  "所属机构ID"
-// @Param status query int true  "状态 0-停用 1-正常"
-// @Success 200 {array} QryMiddleGoodsRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryMiddleGoods [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int true "所属机构ID"
+// @Param    status query    int true "状态 0-停用 1-正常"
+// @Success  200    {array}  QryMiddleGoodsRsp
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryMiddleGoods [get]
+// @Tags     企业风险管理(app)
 func QueryMiddleGoods(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	var req QryMiddleGoodsReq
@@ -49,15 +49,15 @@ type QryMiddleGoodsDetailReq struct {
 // 查询套保品种详情应答
 type QryMiddleGoodsDetailRsp models.ErmcpMiddleGoodsDetail
 
-// @Summary 查询套保品种详情(菜单:套保品种/商品详情)
-// @Produce json
+// @Summary  查询套保品种详情(菜单:套保品种/商品详情)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true  "所属机构ID"
-// @Param middlegoodsid query int false  "套保品种id"
-// @Success 200 {array} QryMiddleGoodsDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryMiddleGoodsDetail [get]
-// @Tags 企业风险管理(app)
+// @Param    userid        query    int true  "所属机构ID"
+// @Param    middlegoodsid query    int false "套保品种id"
+// @Success  200           {array}  QryMiddleGoodsDetailRsp
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp/QueryMiddleGoodsDetail [get]
+// @Tags     企业风险管理(app)
 func QueryMiddleGoodsDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryMiddleGoodsDetailReq
@@ -83,15 +83,15 @@ type QryMGChangeLogReq struct {
 // 查询套保品种变更记录响应
 type QryMGChangeLogRsp models.ErmcpMiddleGoodsChangeLog
 
-// @Summary 查询套保品种变更记录(菜单:套保品种/商品详情/变更记录)
-// @Produce json
+// @Summary  查询套保品种变更记录(菜单:套保品种/商品详情/变更记录)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true  "所属机构ID"
-// @Param middlegoodsid query int true  "套保品种id"
-// @Success 200 {array} QryMGChangeLogRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryMiddleGoodsChangeLog [get]
-// @Tags 企业风险管理(app)
+// @Param    userid        query    int true "所属机构ID"
+// @Param    middlegoodsid query    int true "套保品种id"
+// @Success  200           {array}  QryMGChangeLogRsp
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp/QueryMiddleGoodsChangeLog [get]
+// @Tags     企业风险管理(app)
 func QueryMiddleGoodsChangeLog(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	var req QryMGChangeLogReq

+ 51 - 51
controllers/ermcp/qryOPApply.go

@@ -79,17 +79,17 @@ type QryBusinessDjRsp struct {
 }
 
 // QueryBusinessDj  企业风险管理合同操作查询
-// @Summary 查询业务管理(点价)(对应菜单:业务管理/点价)
-// @Produce json
+// @Summary  查询业务管理(点价)(对应菜单:业务管理/点价)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBusinessDjRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessDj [get]
-// @Tags 企业风险管理(app)
+// @Param    UserId      query    int    true  "用户ID"
+// @Param    usertype    query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    relatedid   query    string false "现货合同ID, 不填则查所有"
+// @Param    applystatus query    string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200         {array}  QryBusinessDjRsp
+// @Failure  500         {object} app.Response
+// @Router   /Ermcp/QueryBusinessDj [get]
+// @Tags     企业风险管理(app)
 func QueryBusinessDj(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -121,18 +121,18 @@ type QryBussinessJsRsp struct {
 }
 
 // QueryBusinessJs  企业风险管理合同操作查询
-// @Summary 查询业务管理(结算)(对应菜单:业务管理/结算)
-// @Produce json
+// @Summary  查询业务管理(结算)(对应菜单:业务管理/结算)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param operateapplyid query string false "操作申请id"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessJsRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessJs [get]
-// @Tags 企业风险管理(app)
+// @Param    UserId         query    int    true  "用户ID"
+// @Param    usertype       query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    relatedid      query    string false "现货合同ID, 不填则查所有"
+// @Param    operateapplyid query    string false "操作申请id"
+// @Param    applystatus    query    string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200            {array}  QryBussinessJsRsp
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp/QueryBusinessJs [get]
+// @Tags     企业风险管理(app)
 func QueryBusinessJs(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -164,17 +164,17 @@ type QryBussinessJsExRsp struct {
 }
 
 // QueryBusinessJsEx
-// @Summary 查询业务管理(结算)(对应菜单:业务管理/结算[拆分记录])
-// @Produce json
+// @Summary  查询业务管理(结算)(对应菜单:业务管理/结算[拆分记录])
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessJsExRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessJsEx [get]
-// @Tags 企业风险管理(app)
+// @Param    UserId      query    int    true  "用户ID"
+// @Param    usertype    query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    relatedid   query    string false "现货合同ID, 不填则查所有"
+// @Param    applystatus query    string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200         {array}  QryBussinessJsExRsp
+// @Failure  500         {object} app.Response
+// @Router   /Ermcp/QueryBusinessJsEx [get]
+// @Tags     企业风险管理(app)
 func QueryBusinessJsEx(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -235,17 +235,17 @@ type QryBussinessKxRsp struct {
 }
 
 // QueryBusinessKx  企业风险管理合同操作查询
-// @Summary 查询财务管理(款项)(对应菜单:财务管理/款项)
-// @Produce json
+// @Summary  查询财务管理(款项)(对应菜单:财务管理/款项)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessKxRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessKx [get]
-// @Tags 企业风险管理(app)
+// @Param    UserId      query    int    true  "用户ID"
+// @Param    usertype    query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    relatedid   query    string false "现货合同ID, 不填则查所有"
+// @Param    applystatus query    string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200         {array}  QryBussinessKxRsp
+// @Failure  500         {object} app.Response
+// @Router   /Ermcp/QueryBusinessKx [get]
+// @Tags     企业风险管理(app)
 func QueryBusinessKx(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq
@@ -277,17 +277,17 @@ type QryBussinessFpRsp struct {
 }
 
 // QueryBusinessFp  企业风险管理合同操作查询
-// @Summary 查询财务管理(发票)(对应菜单:财务管理/发票)
-// @Produce json
+// @Summary  查询财务管理(发票)(对应菜单:财务管理/发票)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param relatedid query string false "现货合同ID, 不填则查所有"
-// @Param applystatus query string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} QryBussinessFpRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryBusinessFp [get]
-// @Tags 企业风险管理(app)
+// @Param    UserId      query    int    true  "用户ID"
+// @Param    usertype    query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    relatedid   query    string false "现货合同ID, 不填则查所有"
+// @Param    applystatus query    string false "申请状态(逗号隔开) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200         {array}  QryBussinessFpRsp
+// @Failure  500         {object} app.Response
+// @Router   /Ermcp/QueryBusinessFp [get]
+// @Tags     企业风险管理(app)
 func QueryBusinessFp(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPApplyReq

+ 7 - 7
controllers/ermcp/qryOPLog.go

@@ -23,14 +23,14 @@ type QryOPLogReq struct {
 type QryOPLogRsp models.ErmcpOPLogModel
 
 // QueryChangeLog 查询变更记录
-// @Summary 查询变更记录
-// @Produce json
+// @Summary  查询变更记录
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param RelatedId query string true "合同ID"
-// @Success 200 {array} QryOPLogRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryChangeLog [get]
-// @Tags 企业风险管理(app)
+// @Param    RelatedId query    string true "合同ID"
+// @Success  200       {array}  QryOPLogRsp
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryChangeLog [get]
+// @Tags     企业风险管理(app)
 func QueryChangeLog(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryOPLogReq

+ 56 - 56
controllers/ermcp/qryOrder.go

@@ -47,16 +47,16 @@ type QueryErmcpTradePositionRsp struct {
 }
 
 // QueryErmcpTradePosition 获取企业风管期货持仓头寸信息
-// @Summary 获取企业风管期货持仓头寸信息
+// @Summary     获取企业风管期货持仓头寸信息
 // @Description 本接口只使用于通道交易相关头寸查询;子账户持仓头寸占用保证金为0;
-// @Produce json
-// @Security ApiKeyAuth
-// @Param accountID query int true "资金账户ID"
-// @Param marketID query int false "所属市场ID"
-// @Success 200 {object} QueryErmcpTradePositionRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryErmcpTradePosition [get]
-// @Tags 企业风险管理(app)
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       accountID query    int true  "资金账户ID"
+// @Param       marketID  query    int false "所属市场ID"
+// @Success     200       {object} QueryErmcpTradePositionRsp
+// @Failure     500       {object} app.Response
+// @Router      /Ermcp/QueryErmcpTradePosition [get]
+// @Tags        企业风险管理(app)
 func QueryErmcpTradePosition(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -507,16 +507,16 @@ type QueryErmcpInnerHolderDetailsReq struct {
 }
 
 // QueryErmcpInnerHolderDetails 获取企业风管期货内部持仓单信息
-// @Summary 获取企业风管期货内部持仓单信息
-// @Produce json
+// @Summary  获取企业风管期货内部持仓单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query int true "资金账户ID"
-// @Param goodsID query int false "商品ID"
-// @Param buyOrSell query int false "买卖方向,0:买 1:卖"
-// @Success 200 {object} models.Hedgeinnerholderdetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryErmcpInnerHolderDetails [get]
-// @Tags 企业风险管理(app)
+// @Param    accountID query    int true  "资金账户ID"
+// @Param    goodsID   query    int false "商品ID"
+// @Param    buyOrSell query    int false "买卖方向,0:买 1:卖"
+// @Success  200       {object} models.Hedgeinnerholderdetail
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryErmcpInnerHolderDetails [get]
+// @Tags     企业风险管理(app)
 func QueryErmcpInnerHolderDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -547,14 +547,14 @@ type QueryErmcpOrderDetailsReq struct {
 }
 
 // QueryErmcpOrderDetails 获取企业风管期货委托单信息
-// @Summary 获取企业风管期货委托单信息
-// @Produce json
+// @Summary  获取企业风管期货委托单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query int true "资金账户ID"
-// @Success 200 {object} models.QueryHedgeOrderDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryErmcpOrderDetails [get]
-// @Tags 企业风险管理(app)
+// @Param    accountID query    int true "资金账户ID"
+// @Success  200       {object} models.QueryHedgeOrderDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryErmcpOrderDetails [get]
+// @Tags     企业风险管理(app)
 func QueryErmcpOrderDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -613,16 +613,16 @@ type QueryErmcpHisOrderDetailsReq struct {
 }
 
 // QueryErmcpHisOrderDetails 获取企业风管期货历史委托单信息
-// @Summary 获取企业风管期货历史委托单信息
-// @Produce json
+// @Summary  获取企业风管期货历史委托单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query int true "资金账户ID"
-// @Param startDate query string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
-// @Param endDate query string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
-// @Success 200 {object} models.QueryHedgeOrderDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryErmcpHisOrderDetails [get]
-// @Tags 企业风险管理(app)
+// @Param    accountID query    int    true  "资金账户ID"
+// @Param    startDate query    string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
+// @Param    endDate   query    string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
+// @Success  200       {object} models.QueryHedgeOrderDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryErmcpHisOrderDetails [get]
+// @Tags     企业风险管理(app)
 func QueryErmcpHisOrderDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -682,17 +682,17 @@ type QueryHedgeTradeDetailReq struct {
 }
 
 // QueryErmcpTradeDetails 获取企业风管期货成交单信息
-// @Summary 获取企业风管期货成交单信息
-// @Produce json
+// @Summary  获取企业风管期货成交单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query int true "资金账户ID"
-// @Param goodsID query int false "商品ID"
-// @Param buyOrSell query int false "买卖方向,0:买 1:卖"
-// @Param orderID query int false "关联委托单号"
-// @Success 200 {object} models.QueryHedgeTradeDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryErmcpTradeDetails [get]
-// @Tags 企业风险管理(app)
+// @Param    accountID query    int true  "资金账户ID"
+// @Param    goodsID   query    int false "商品ID"
+// @Param    buyOrSell query    int false "买卖方向,0:买 1:卖"
+// @Param    orderID   query    int false "关联委托单号"
+// @Success  200       {object} models.QueryHedgeTradeDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryErmcpTradeDetails [get]
+// @Tags     企业风险管理(app)
 func QueryErmcpTradeDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -754,19 +754,19 @@ type QueryHedgeHisTradeDetaislReq struct {
 }
 
 // QueryErmcpHisTradeDetails 获取企业风管期货历史成交单信息
-// @Summary 获取企业风管期货历史成交单信息
-// @Produce json
+// @Summary  获取企业风管期货历史成交单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query int true "资金账户ID"
-// @Param goodsID query int false "商品ID"
-// @Param buyOrSell query int false "买卖方向,0:买 1:卖"
-// @Param orderID query int false "关联委托单号"
-// @Param startDate query string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
-// @Param endDate query string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
-// @Success 200 {object} models.QueryHedgeTradeDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryErmcpHisTradeDetails [get]
-// @Tags 企业风险管理(app)
+// @Param    accountID query    int    true  "资金账户ID"
+// @Param    goodsID   query    int    false "商品ID"
+// @Param    buyOrSell query    int    false "买卖方向,0:买 1:卖"
+// @Param    orderID   query    int    false "关联委托单号"
+// @Param    startDate query    string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
+// @Param    endDate   query    string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
+// @Success  200       {object} models.QueryHedgeTradeDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp/QueryErmcpHisTradeDetails [get]
+// @Tags     企业风险管理(app)
 func QueryErmcpHisTradeDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 7 - 7
controllers/ermcp/qryPendingAuditInfo.go

@@ -21,14 +21,14 @@ type PendingAuditCntReq struct {
 type PendingAuditCntRsp models.ErmcpPendingAudit
 
 // QueryPendingAuditInfo  查询待审核数量信息
-// @Summary 查询待审核数量信息(首页/菜单按钮小红点)
-// @Produce json
+// @Summary  查询待审核数量信息(首页/菜单按钮小红点)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param UserId query int true "用户ID"
-// @Success 200 {array} PendingAuditCntRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryPendingAuditInfo [get]
-// @Tags 企业风险管理(app)
+// @Param    UserId query    int true "用户ID"
+// @Success  200    {array}  PendingAuditCntRsp
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryPendingAuditInfo [get]
+// @Tags     企业风险管理(app)
 func QueryPendingAuditInfo(c *gin.Context) {
 	a := app.NewGinUtils(c)
 	var req PendingAuditCntReq

+ 22 - 22
controllers/ermcp/qryUser.go

@@ -27,15 +27,15 @@ type QryUserInfoReq struct {
 type QryUserInfoRsp models.ErmcpUserModel
 
 // QueryUserInfo 查询客户资料
-// @Summary 查询客户资料
-// @Produce json
+// @Summary  查询客户资料
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param MemberUserID query int true "所属机构用户ID"
-// @Param queryType query int true "查询类型(1:未提交 2:待审核 3:正常 4:停用)"
-// @Success 200 {array} QryUserInfoRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryUserInfo [get]
-// @Tags 企业风险管理(app)
+// @Param    MemberUserID query    int true "所属机构用户ID"
+// @Param    queryType    query    int true "查询类型(1:未提交 2:待审核 3:正常 4:停用)"
+// @Success  200          {array}  QryUserInfoRsp
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp/QueryUserInfo [get]
+// @Tags     企业风险管理(app)
 func QueryUserInfo(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryUserInfoReq
@@ -59,14 +59,14 @@ type GetErmcpRolefuncMenuReq struct {
 }
 
 // GetErmcpRoleFuncMenuLists 获取企业风管终端权限
-// @Summary 获取企业风管终端权限
-// @Produce json
+// @Summary  获取企业风管终端权限
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Success 200 {object} models.Funcmenulist
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/GetErmcpRoleFuncMenuLists [get]
-// @Tags 企业风险管理(app)
+// @Param    loginID query    int true "登录账号"
+// @Success  200     {object} models.Funcmenulist
+// @Failure  500     {object} app.Response
+// @Router   /Ermcp/GetErmcpRoleFuncMenuLists [get]
+// @Tags     企业风险管理(app)
 func GetErmcpRoleFuncMenuLists(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -98,14 +98,14 @@ type GetErmcpOutAccountStatusReq struct {
 }
 
 // GetErmcpOutAccountStatus 获取目标登录账号当前对冲账号在线状态
-// @Summary 获取目标登录账号当前对冲账号在线状态
-// @Produce json
+// @Summary  获取目标登录账号当前对冲账号在线状态
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Success 200 {object} models.Hedgemarketopenlog
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/GetErmcpOutAccountStatus [get]
-// @Tags 企业风险管理(app)
+// @Param    loginID query    int true "登录账号"
+// @Success  200     {object} models.Hedgemarketopenlog
+// @Failure  500     {object} app.Response
+// @Router   /Ermcp/GetErmcpOutAccountStatus [get]
+// @Tags     企业风险管理(app)
 func GetErmcpOutAccountStatus(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 8 - 8
controllers/ermcp/qryWarehouse.go

@@ -25,15 +25,15 @@ type QryWarehouseReq struct {
 type QryWarehouseRsp models.ErmcpWareHouseInfo
 
 // QryWarehouseInfo
-// @Summary 查询仓库信息
-// @Produce json
+// @Summary  查询仓库信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param status query string false "仓库状态(可多项,逗号隔开) 1:正常 2:注销 3:待审核 4:审核拒绝"
-// @Success 200 {array} QryWarehouseRsp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp/QueryWarehouseInfo [get]
-// @Tags 企业风险管理(app)
+// @Param    userid query    int    true  "用户ID"
+// @Param    status query    string false "仓库状态(可多项,逗号隔开) 1:正常 2:注销 3:待审核 4:审核拒绝"
+// @Success  200    {array}  QryWarehouseRsp
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp/QueryWarehouseInfo [get]
+// @Tags     企业风险管理(app)
 func QueryWarehouseInfo(c *gin.Context) {
 	a := app.NewGinUtils(c)
 	req := QryWarehouseReq{}

+ 293 - 293
controllers/ermcp3/qryErmcp3.go

@@ -17,16 +17,16 @@ import (
 )
 
 // QueryDeliveryGoods
-// @Summary 查询现货商品
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param excludecfg query int false "排除已配置的业务类型商品 1-套保 2-套利"
-// @Success 200 {array} models.ErmcpDeliveryGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryDeliveryGoods [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询现货商品
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid     query    int true  "用户id"
+// @Param    usertype   query    int false "用户类型 2-机构 7-企业成员"
+// @Param    excludecfg query    int false "排除已配置的业务类型商品 1-套保 2-套利"
+// @Success  200        {array}  models.ErmcpDeliveryGoods
+// @Failure  500        {object} app.Response
+// @Router   /Ermcp3/QueryDeliveryGoods [get]
+// @Tags     企业风险管理v3(app)
 func QueryDeliveryGoods(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -42,17 +42,17 @@ func QueryDeliveryGoods(c *gin.Context) {
 }
 
 // QueryDeliveryGoodsDetail
-// @Summary 查询现货商品详情
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param deliverygoodsid query int false "现货商品id"
-// @Param filtersubempty query int false "过滤下级为空, 1-过滤. 比如 品种大豆的下级品类列表为空, 则大豆不显示; 比如品类的下级套保品列表为空, 则该品类不显示"
-// @Success 200 {array} models.XHDeliveryGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryDeliveryGoodsDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询现货商品详情
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid          query    int true  "用户id"
+// @Param    usertype        query    int false "用户类型 2-机构 7-企业成员"
+// @Param    deliverygoodsid query    int false "现货商品id"
+// @Param    filtersubempty  query    int false "过滤下级为空, 1-过滤. 比如 品种大豆的下级品类列表为空, 则大豆不显示; 比如品类的下级套保品列表为空, 则该品类不显示"
+// @Success  200             {array}  models.XHDeliveryGoods
+// @Failure  500             {object} app.Response
+// @Router   /Ermcp3/QueryDeliveryGoodsDetail [get]
+// @Tags     企业风险管理v3(app)
 func QueryDeliveryGoodsDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -67,16 +67,16 @@ func QueryDeliveryGoodsDetail(c *gin.Context) {
 }
 
 // QueryMiddleGoodsDetail
-// @Summary 查询套保品种详情(套保品种/商品详情)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true  "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param middlegoodsid query int false  "套保品种id"
-// @Success 200 {array} models.TBMiddleGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryMiddleGoodsDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询套保品种详情(套保品种/商品详情)
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid        query    int true  "用户id"
+// @Param    usertype      query    int false "用户类型 2-机构 7-企业成员"
+// @Param    middlegoodsid query    int false "套保品种id"
+// @Success  200           {array}  models.TBMiddleGoods
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QueryMiddleGoodsDetail [get]
+// @Tags     企业风险管理v3(app)
 func QueryMiddleGoodsDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -105,22 +105,22 @@ type QryContractReq struct {
 }
 
 // QuerySpotContract
-// @Summary 查询现货合同
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户id(当指定contractid, userid可不填)"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param contracttype query int false "合同类型 1-采购, -1-销售"
-// @Param querytype query string false "查询类型(逗号隔开, 如1,2,3) 1-未提交 2-待审核 3-履约中 4-已完成"
-// @Param contractid query string false "合同ID(SpotContractId)"
-// @Param contractno query string false "合同编号(模糊匹配)"
-// @Param wrstandardname query string false "商品名称(模糊匹配)"
-// @Param status query string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
-// @Param istoday query int false "是否只查今日的合同  1-查今日合同"
-// @Success 200 {array} models.Ermcp3Contract
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QuerySpotContract [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询现货合同
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid         query    int    true  "用户id(当指定contractid, userid可不填)"
+// @Param    usertype       query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    contracttype   query    int    false "合同类型 1-采购, -1-销售"
+// @Param    querytype      query    string false "查询类型(逗号隔开, 如1,2,3) 1-未提交 2-待审核 3-履约中 4-已完成"
+// @Param    contractid     query    string false "合同ID(SpotContractId)"
+// @Param    contractno     query    string false "合同编号(模糊匹配)"
+// @Param    wrstandardname query    string false "商品名称(模糊匹配)"
+// @Param    status         query    string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
+// @Param    istoday        query    int    false "是否只查今日的合同  1-查今日合同"
+// @Success  200            {array}  models.Ermcp3Contract
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp3/QuerySpotContract [get]
+// @Tags     企业风险管理v3(app)
 func QuerySpotContract(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -144,20 +144,20 @@ func QuerySpotContract(c *gin.Context) {
 }
 
 // QuerySpotContractBS
-// @Summary 查询合同(采购/销售)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param contracttype query int true "合同类型 1-采购, -1-销售"
-// @Param querytype query int false "查询类型 1-全部 2-待点价 3-履约结算 4-已完成"
-// @Param contractid query string false "合同ID(SpotContractId)"
-// @Param status query string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
-// @Param istoday query int false "是否只查今日的合同  1-查今日合同"
-// @Success 200 {array} models.Ermcp3SellBuyContract
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QuerySpotContractBS [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询合同(采购/销售)
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid       query    int    true  "用户id"
+// @Param    usertype     query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    contracttype query    int    true  "合同类型 1-采购, -1-销售"
+// @Param    querytype    query    int    false "查询类型 1-全部 2-待点价 3-履约结算 4-已完成"
+// @Param    contractid   query    string false "合同ID(SpotContractId)"
+// @Param    status       query    string false "合同状态(当填写此项时,将忽略querytype条件;可多个,逗号隔开,如0,1,2) 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
+// @Param    istoday      query    int    false "是否只查今日的合同  1-查今日合同"
+// @Success  200          {array}  models.Ermcp3SellBuyContract
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp3/QuerySpotContractBS [get]
+// @Tags     企业风险管理v3(app)
 func QuerySpotContractBS(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryContractReq{}
@@ -171,16 +171,16 @@ func QuerySpotContractBS(c *gin.Context) {
 }
 
 // QueryExposureDetail
-// @Summary 查询敞口现货明细
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param middlegoodsid query int true "套保商品"
-// @Success 200 {array} models.Ermcp3ExposureDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryExposureDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询敞口现货明细
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid        query    int true  "用户id"
+// @Param    usertype      query    int false "用户类型 2-机构 7-企业成员"
+// @Param    middlegoodsid query    int true  "套保商品"
+// @Success  200           {array}  models.Ermcp3ExposureDetail
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QueryExposureDetail [get]
+// @Tags     企业风险管理v3(app)
 func QueryExposureDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -195,15 +195,15 @@ func QueryExposureDetail(c *gin.Context) {
 }
 
 // QueryExposureSpot
-// @Summary 查询敞口现货头寸(敞口/现货头寸)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Success 200 {array} models.Ermcp3AreaSpot
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryExposureSpot [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询敞口现货头寸(敞口/现货头寸)
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid   query    int true  "用户id"
+// @Param    usertype query    int false "用户类型 2-机构 7-企业成员"
+// @Success  200      {array}  models.Ermcp3AreaSpot
+// @Failure  500      {object} app.Response
+// @Router   /Ermcp3/QueryExposureSpot [get]
+// @Tags     企业风险管理v3(app)
 func QueryExposureSpot(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -216,16 +216,16 @@ func QueryExposureSpot(c *gin.Context) {
 }
 
 // QueryExposureSpotDetail
-// @Summary 查询敞口现货头寸明细(敞口/现货头寸/现货明细)
-// @Produce json
+// @Summary  查询敞口现货头寸明细(敞口/现货头寸/现货明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param wrstandardid query int true "现货商品ID"
-// @Success 200 {array} models.Ermcp3AreaSpotDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryExposureSpotDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid       query    int true  "用户id"
+// @Param    usertype     query    int false "用户类型 2-机构 7-企业成员"
+// @Param    wrstandardid query    int true  "现货商品ID"
+// @Success  200          {array}  models.Ermcp3AreaSpotDetail
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp3/QueryExposureSpotDetail [get]
+// @Tags     企业风险管理v3(app)
 func QueryExposureSpotDetail(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -240,19 +240,19 @@ func QueryExposureSpotDetail(c *gin.Context) {
 }
 
 // QueryDGFactoryItem
-// @Summary 查询品种要素定义项
-// @Produce json
+// @Summary  查询品种要素定义项
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param dgfactoryitemid query int false "选择项ID(SEQ_DGFACTORYITEM)"
-// @Param deliverygoodsid query int false "现货品种ID"
-// @Param dgfactoryitemtypeid query int false "要素项类型"
-// @Param orderindex query int false "顺序"
-// @Success 200 {array} models.ErmcpDGFactoryItem
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryDGFactoryItem [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid              query    int false "用户id"
+// @Param    usertype            query    int false "用户类型 2-机构 7-企业成员"
+// @Param    dgfactoryitemid     query    int false "选择项ID(SEQ_DGFACTORYITEM)"
+// @Param    deliverygoodsid     query    int false "现货品种ID"
+// @Param    dgfactoryitemtypeid query    int false "要素项类型"
+// @Param    orderindex          query    int false "顺序"
+// @Success  200                 {array}  models.ErmcpDGFactoryItem
+// @Failure  500                 {object} app.Response
+// @Router   /Ermcp3/QueryDGFactoryItem [get]
+// @Tags     企业风险管理v3(app)
 func QueryDGFactoryItem(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -275,15 +275,15 @@ func QueryDGFactoryItem(c *gin.Context) {
 }
 
 // QueryGoodsbrand
-// @Summary 查询商品品牌
-// @Produce json
+// @Summary  查询商品品牌
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Success 200 {array} models.Ermcp3Brand
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryGoodsbrand [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid   query    int true  "用户id"
+// @Param    usertype query    int false "用户类型 2-机构 7-企业成员"
+// @Success  200      {array}  models.Ermcp3Brand
+// @Failure  500      {object} app.Response
+// @Router   /Ermcp3/QueryGoodsbrand [get]
+// @Tags     企业风险管理v3(app)
 func QueryGoodsbrand(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -300,16 +300,16 @@ func QueryGoodsbrand(c *gin.Context) {
 }
 
 // QueryGoodsWrstandard
-// @Summary 查询商品品类
-// @Produce json
+// @Summary  查询商品品类
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true  "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param deliverygoodsid query int false  "现货商品id"
-// @Success 200 {array} models.Ermcp3Wrstandard
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryGoodsWrstandard [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid          query    int true  "用户id"
+// @Param    usertype        query    int false "用户类型 2-机构 7-企业成员"
+// @Param    deliverygoodsid query    int false "现货商品id"
+// @Success  200             {array}  models.Ermcp3Wrstandard
+// @Failure  500             {object} app.Response
+// @Router   /Ermcp3/QueryGoodsWrstandard [get]
+// @Tags     企业风险管理v3(app)
 func QueryGoodsWrstandard(c *gin.Context) {
 	appG := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -324,22 +324,22 @@ func QueryGoodsWrstandard(c *gin.Context) {
 }
 
 // QueryAreaStockApply
-// @Summary 查询库存申请(出入库记录|库存审核)
-// @Produce json
+// @Summary  查询库存申请(出入库记录|库存审核)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param deliverygoodsid query int false "现货商品ID"
-// @Param inouttype query string false "出入库类型(可多项,逗号隔开) 5:采购入库 6:销售出库 7:生产入库 8:生产出库"
-// @Param spotcontractid query int false "合同ID"
-// @Param wrstandardid query int false "品类ID"
-// @Param spotgoodsbrandid query int false "品牌ID"
-// @Param warehouseinfoid query int false "仓库ID"
-// @Param applystatus query string false "申请状态(可多项,逗号隔开)1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} models.Ermcp3AreaStockApply
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryAreaStockApply [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid           query    int    true  "用户ID"
+// @Param    usertype         query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    deliverygoodsid  query    int    false "现货商品ID"
+// @Param    inouttype        query    string false "出入库类型(可多项,逗号隔开) 5:采购入库 6:销售出库 7:生产入库 8:生产出库"
+// @Param    spotcontractid   query    int    false "合同ID"
+// @Param    wrstandardid     query    int    false "品类ID"
+// @Param    spotgoodsbrandid query    int    false "品牌ID"
+// @Param    warehouseinfoid  query    int    false "仓库ID"
+// @Param    applystatus      query    string false "申请状态(可多项,逗号隔开)1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200              {array}  models.Ermcp3AreaStockApply
+// @Failure  500              {object} app.Response
+// @Router   /Ermcp3/QueryAreaStockApply [get]
+// @Tags     企业风险管理v3(app)
 func QueryAreaStockApply(c *gin.Context) {
 	a := app.NewGinUtils(c)
 	req := struct {
@@ -368,14 +368,14 @@ func QueryAreaStockApply(c *gin.Context) {
 }
 
 // QueryAreaStock
-// @Summary 查询机构库存(库存管理/当前库存)
-// @Produce json
+// @Summary  查询机构库存(库存管理/当前库存)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.Ermcp3AreaStock
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryAreaStock [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.Ermcp3AreaStock
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp3/QueryAreaStock [get]
+// @Tags     企业风险管理v3(app)
 func QueryAreaStock(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3AreaStock{}
@@ -384,14 +384,14 @@ func QueryAreaStock(c *gin.Context) {
 }
 
 // QueryAreaStockApplySum
-// @Summary 查询已登记出入库信息(入库登记/已入库信息 | 出库登记/已出库信息)
-// @Produce json
+// @Summary  查询已登记出入库信息(入库登记/已入库信息 | 出库登记/已出库信息)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param spotcontractid query int true "合同ID"
-// @Success 200 {array} models.Ermcp3AreaStockApplySum
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryAreaStockApplySum [get]
-// @Tags 企业风险管理v3(app)
+// @Param    spotcontractid query    int true "合同ID"
+// @Success  200            {array}  models.Ermcp3AreaStockApplySum
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp3/QueryAreaStockApplySum [get]
+// @Tags     企业风险管理v3(app)
 func QueryAreaStockApplySum(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -403,14 +403,14 @@ func QueryAreaStockApplySum(c *gin.Context) {
 }
 
 // QuerySpotGoodsPrice
-// @Summary 查询现货市价(现货市价)
-// @Produce json
+// @Summary  查询现货市价(现货市价)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.Ermcp3SpotGoodsPrice
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QuerySpotGoodsPrice [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.Ermcp3SpotGoodsPrice
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp3/QuerySpotGoodsPrice [get]
+// @Tags     企业风险管理v3(app)
 func QuerySpotGoodsPrice(c *gin.Context) {
 	req := struct {
 		UserId int64 `form:"userid" binding:"required"` // 用户id
@@ -422,17 +422,17 @@ func QuerySpotGoodsPrice(c *gin.Context) {
 }
 
 // QuerySpotGoodsPriceLog
-// @Summary 查询现货市价详情(现货市价/详情)
-// @Produce json
+// @Summary  查询现货市价详情(现货市价/详情)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param deliverygoodsid query int true "现货商品ID"
-// @Param brandid query int false "品牌ID"
-// @Param wrstandardid query int false "品类ID"
-// @Success 200 {array} models.Ermcp3SpotGoodsPriceLog
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QuerySpotGoodsPriceLog [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid          query    int true  "用户ID"
+// @Param    deliverygoodsid query    int true  "现货商品ID"
+// @Param    brandid         query    int false "品牌ID"
+// @Param    wrstandardid    query    int false "品类ID"
+// @Success  200             {array}  models.Ermcp3SpotGoodsPriceLog
+// @Failure  500             {object} app.Response
+// @Router   /Ermcp3/QuerySpotGoodsPriceLog [get]
+// @Tags     企业风险管理v3(app)
 func QuerySpotGoodsPriceLog(c *gin.Context) {
 	req := struct {
 		UserId          int64 `form:"userid" binding:"required"`          // 用户id
@@ -448,16 +448,16 @@ func QuerySpotGoodsPriceLog(c *gin.Context) {
 }
 
 // QueryHedgePlan 查询套保计划
-// @Summary 查询套保计划
-// @Produce json
+// @Summary  查询套保计划
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param hedgeplanstatus query string true "套保计划状态(允许多个,逗号隔开) - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
-// @Success 200 {array} models.Ermcp3HedgePlan
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryHedgePlan [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid          query    int    true  "用户ID"
+// @Param    usertype        query    int    false "用户类型 2-机构 7-企业成员"
+// @Param    hedgeplanstatus query    string true  "套保计划状态(允许多个,逗号隔开) - 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
+// @Success  200             {array}  models.Ermcp3HedgePlan
+// @Failure  500             {object} app.Response
+// @Router   /Ermcp3/QueryHedgePlan [get]
+// @Tags     企业风险管理v3(app)
 func QueryHedgePlan(c *gin.Context) {
 	appG := app.Gin{C: c}
 	req := struct {
@@ -481,16 +481,16 @@ func QueryHedgePlan(c *gin.Context) {
 }
 
 // QueryGoodsGroup
-// @Summary 查询期货商品组
-// @Produce json
+// @Summary  查询期货商品组
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param usertype query int false "用户类型 2-机构 7-企业成员"
-// @Param excludecfg query int false "排除套保品中已关联的商品组 1-排除"
-// @Success 200 {array} models.Ermcp3GoodsGroup
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryGoodsGroup [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid     query    int true  "用户id"
+// @Param    usertype   query    int false "用户类型 2-机构 7-企业成员"
+// @Param    excludecfg query    int false "排除套保品中已关联的商品组 1-排除"
+// @Success  200        {array}  models.Ermcp3GoodsGroup
+// @Failure  500        {object} app.Response
+// @Router   /Ermcp3/QueryGoodsGroup [get]
+// @Tags     企业风险管理v3(app)
 func QueryGoodsGroup(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -505,14 +505,14 @@ func QueryGoodsGroup(c *gin.Context) {
 }
 
 // QueryRootUserAccount
-// @Summary 查询顶级用户信息
-// @Produce json
+// @Summary  查询顶级用户信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.Ermcp3RootUserAccount
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryRootUserAccount [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.Ermcp3RootUserAccount
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp3/QueryRootUserAccount [get]
+// @Tags     企业风险管理v3(app)
 func QueryRootUserAccount(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -524,17 +524,17 @@ func QueryRootUserAccount(c *gin.Context) {
 }
 
 // QueryPaAreaSubject
-// @Summary 查询交易主体
-// @Produce json
+// @Summary  查询交易主体
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Param subjectid query int false "主体ID(SEQ_ERMCP_PA_AREASUBJECT)"
-// @Param subjecttype query int false "主体类型 - 1:交易主体 2:业务部门"
-// @Param subjectstatus query int false "主体状态 - 1:正常 2: 停用"
-// @Success 200 {array} models.Ermcp3PaAreaSubject
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryPaAreaSubject [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid        query    int true  "用户id"
+// @Param    subjectid     query    int false "主体ID(SEQ_ERMCP_PA_AREASUBJECT)"
+// @Param    subjecttype   query    int false "主体类型 - 1:交易主体 2:业务部门"
+// @Param    subjectstatus query    int false "主体状态 - 1:正常 2: 停用"
+// @Success  200           {array}  models.Ermcp3PaAreaSubject
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QueryPaAreaSubject [get]
+// @Tags     企业风险管理v3(app)
 func QueryPaAreaSubject(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3PaAreaSubject{}
@@ -543,14 +543,14 @@ func QueryPaAreaSubject(c *gin.Context) {
 }
 
 // QueryPaAreaAuditCfg
-// @Summary 查询审核设置
-// @Produce json
+// @Summary  查询审核设置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户id"
-// @Success 200 {array} models.Ermcp3PaAreaAuditCfg
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryPaAreaAuditCfg [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid query    int true "用户id"
+// @Success  200    {array}  models.Ermcp3PaAreaAuditCfg
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp3/QueryPaAreaAuditCfg [get]
+// @Tags     企业风险管理v3(app)
 func QueryPaAreaAuditCfg(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3PaAreaAuditCfg{}
@@ -559,15 +559,15 @@ func QueryPaAreaAuditCfg(c *gin.Context) {
 }
 
 // QueryPaTradeLink
-// @Summary 查询期现单据关联
+// @Summary     查询期现单据关联
 // @Description 页面 app 现货->期现关联->期现单据关联
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.Ermcp3PaTradeLink
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryPaTradeLink [get]
-// @Tags 企业风险管理v3(app)
+// @Param       userid query    int true "用户ID"
+// @Success     200    {array}  models.Ermcp3PaTradeLink
+// @Failure     500    {object} app.Response
+// @Router      /Ermcp3/QueryPaTradeLink [get]
+// @Tags        企业风险管理v3(app)
 func QueryPaTradeLink(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3PaTradeLink{}
@@ -576,22 +576,22 @@ func QueryPaTradeLink(c *gin.Context) {
 }
 
 // QuerySCMiddleGoods
-// @Summary 查询现货订单
+// @Summary     查询现货订单
 // @Description 页面 app 现货->期现关联->期现单据关联->点"关联"按钮->弹出界面 : 现货订单
 // @Description 现货编号 即 合同编号
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID(填登录用户的userid)"
-// @Param buyorsell query int true "买卖方向 0-买 1-卖"
-// @Param goodsgroupid query int true "商品组id"
-// @Param biztype query int false "业务类型  1:套保 2:套利"
-// @Param contractno query string false "现货编号(模糊匹配)"
-// @Param customername query string false "对手方(模糊匹配)"
-// @Param wrstandardname query string false "现货商品名称(模糊匹配)"
-// @Success 200 {array} models.Ermcp3SCMiddleGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QuerySCMiddleGoods [get]
-// @Tags 企业风险管理v3(app)
+// @Param       userid         query    int    true  "用户ID(填登录用户的userid)"
+// @Param       buyorsell      query    int    true  "买卖方向 0-买 1-卖"
+// @Param       goodsgroupid   query    int    true  "商品组id"
+// @Param       biztype        query    int    false "业务类型  1:套保 2:套利"
+// @Param       contractno     query    string false "现货编号(模糊匹配)"
+// @Param       customername   query    string false "对手方(模糊匹配)"
+// @Param       wrstandardname query    string false "现货商品名称(模糊匹配)"
+// @Success     200            {array}  models.Ermcp3SCMiddleGoods
+// @Failure     500            {object} app.Response
+// @Router      /Ermcp3/QuerySCMiddleGoods [get]
+// @Tags        企业风险管理v3(app)
 func QuerySCMiddleGoods(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3SCMiddleGoods{}
@@ -600,18 +600,18 @@ func QuerySCMiddleGoods(c *gin.Context) {
 }
 
 // QueryHPMiddleGoods
-// @Summary 查询可关联套保计划
-// @Produce json
+// @Summary  查询可关联套保计划
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID(填登录用户的userid)"
-// @Param buyorsell query int true "买卖方向 0-买 1-卖"
-// @Param goodsgroupid query int true "商品组id"
-// @Param hedgeplanno query string false "套保计划编号(模糊匹配)"
-// @Param wrstandardname query string false "现货商品名称(模糊匹配)"
-// @Success 200 {array} models.Ermcp3HPMiddleGoods
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryHPMiddleGoods [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid         query    int    true  "用户ID(填登录用户的userid)"
+// @Param    buyorsell      query    int    true  "买卖方向 0-买 1-卖"
+// @Param    goodsgroupid   query    int    true  "商品组id"
+// @Param    hedgeplanno    query    string false "套保计划编号(模糊匹配)"
+// @Param    wrstandardname query    string false "现货商品名称(模糊匹配)"
+// @Success  200            {array}  models.Ermcp3HPMiddleGoods
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp3/QueryHPMiddleGoods [get]
+// @Tags     企业风险管理v3(app)
 func QueryHPMiddleGoods(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3HPMiddleGoods{}
@@ -620,19 +620,19 @@ func QueryHPMiddleGoods(c *gin.Context) {
 }
 
 // QueryPaTradeLinkDetail
-// @Summary 查询期现关联记录
+// @Summary     查询期现关联记录
 // @Description 页面 app 现货->期现关联->关联记录
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID(填登录用户的userid)"
-// @Param linkstatus query int false "关联状态 1:成功 2:失败 3:解绑"
-// @Param tradeid query string false "期货订单号(模糊匹配)"
-// @Param contractno query string false "现货编号(模糊匹配)"
-// @Param taname query string false "期货账户(模糊匹配)"
-// @Success 200 {array} models.Ermcp3TradeLinkDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryPaTradeLinkDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Param       userid     query    int    true  "用户ID(填登录用户的userid)"
+// @Param       linkstatus query    int    false "关联状态 1:成功 2:失败 3:解绑"
+// @Param       tradeid    query    string false "期货订单号(模糊匹配)"
+// @Param       contractno query    string false "现货编号(模糊匹配)"
+// @Param       taname     query    string false "期货账户(模糊匹配)"
+// @Success     200        {array}  models.Ermcp3TradeLinkDetail
+// @Failure     500        {object} app.Response
+// @Router      /Ermcp3/QueryPaTradeLinkDetail [get]
+// @Tags        企业风险管理v3(app)
 func QueryPaTradeLinkDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3TradeLinkDetail{}
@@ -641,18 +641,18 @@ func QueryPaTradeLinkDetail(c *gin.Context) {
 }
 
 // QueryOutTradeLink
-// @Summary 查询外部成交单关联
+// @Summary     查询外部成交单关联
 // @Description 页面 app 现货->期现关联->外部成交单关联
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID(填登录用户的userid)"
-// @Param outtradeid query string false "外部订单号(模糊匹配)"
-// @Param goodsname query string false "合约名称/代码(模糊匹配)"
-// @Param hasinnerorder query int false "关联状态 0-未关联 1-已关联"
-// @Success 200 {array} models.Ermcp3OutTradeLink
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryOutTradeLink [get]
-// @Tags 企业风险管理v3(app)
+// @Param       userid        query    int    true  "用户ID(填登录用户的userid)"
+// @Param       outtradeid    query    string false "外部订单号(模糊匹配)"
+// @Param       goodsname     query    string false "合约名称/代码(模糊匹配)"
+// @Param       hasinnerorder query    int    false "关联状态 0-未关联 1-已关联"
+// @Success     200           {array}  models.Ermcp3OutTradeLink
+// @Failure     500           {object} app.Response
+// @Router      /Ermcp3/QueryOutTradeLink [get]
+// @Tags        企业风险管理v3(app)
 func QueryOutTradeLink(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3OutTradeLink{HASINNERORDER: -1}
@@ -661,16 +661,16 @@ func QueryOutTradeLink(c *gin.Context) {
 }
 
 // QuerySubTaaccount
-// @Summary 查询期货子账户
+// @Summary     查询期货子账户
 // @Description 页面 app 现货->期现关联->外部成交单关联->点"关联"按钮->选择期货子账户
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param parentaccountid query int false "母账号id"
-// @Param parentaccountcode query string false "母账号代码"
-// @Success 200 {array} models.Ermcp3SubTaaccount
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QuerySubTaaccount [get]
-// @Tags 企业风险管理v3(app)
+// @Param       parentaccountid   query    int    false "母账号id"
+// @Param       parentaccountcode query    string false "母账号代码"
+// @Success     200               {array}  models.Ermcp3SubTaaccount
+// @Failure     500               {object} app.Response
+// @Router      /Ermcp3/QuerySubTaaccount [get]
+// @Tags        企业风险管理v3(app)
 func QuerySubTaaccount(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3SubTaaccount{}
@@ -679,15 +679,15 @@ func QuerySubTaaccount(c *gin.Context) {
 }
 
 // QueryInnerTradeLink
-// @Summary 查询外部成交单关联的内部单信息(在解除外部关联页面使用)
+// @Summary     查询外部成交单关联的内部单信息(在解除外部关联页面使用)
 // @Description 页面 app 现货->期现关联->外部成交单关联->点"解除关联"按钮->解除外部关联的页面信息
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param outtradeid query int true "外部成交单号"
-// @Success 200 {array} models.Ermcp3InnerTradeLink
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryInnerTradeLink [get]
-// @Tags 企业风险管理v3(app)
+// @Param       outtradeid query    int true "外部成交单号"
+// @Success     200        {array}  models.Ermcp3InnerTradeLink
+// @Failure     500        {object} app.Response
+// @Router      /Ermcp3/QueryInnerTradeLink [get]
+// @Tags        企业风险管理v3(app)
 func QueryInnerTradeLink(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3InnerTradeLink{}
@@ -696,23 +696,23 @@ func QueryInnerTradeLink(c *gin.Context) {
 }
 
 // QueryParamChangeApp
-// @Summary 查询现货商品参数变更申请(流水)
+// @Summary     查询现货商品参数变更申请(流水)
 // @Description 原型页面:
 // @Description 1.商品信息->商品参数修改流水-> 增值税税率 | 折算系数 | 成本权重; 流水页面查申请状态为“审核通过”的记录
 // @Description 2.风管审核->套保比例审核 | 折算系数审核 | 增值税税率审核 | 成本权重审核
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param deliverygoodsid query int false "现货品种id"
-// @Param wrstandardid query int false "现货商品id"
-// @Param middlegoodsid query int false "套保商品id"
-// @Param operatetype query int false "操作类型  1:新增 2:修改"
-// @Param paramchangetype query int false "参数变更类型 - 1:增值税率变更(现货商品) 2:折算系数变更(现货商品) 3:成本权重(现货商品) 4:套保比率变更(套保品种)"
-// @Param ftstatus query string false "申请状态(逗号隔开,如1,2,3) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} models.Ermcp3ParamChangeApp
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryParamChangeApp [get]
-// @Tags 企业风险管理v3(app)
+// @Param       userid          query    int    true  "用户ID"
+// @Param       deliverygoodsid query    int    false "现货品种id"
+// @Param       wrstandardid    query    int    false "现货商品id"
+// @Param       middlegoodsid   query    int    false "套保商品id"
+// @Param       operatetype     query    int    false "操作类型  1:新增 2:修改"
+// @Param       paramchangetype query    int    false "参数变更类型 - 1:增值税率变更(现货商品) 2:折算系数变更(现货商品) 3:成本权重(现货商品) 4:套保比率变更(套保品种)"
+// @Param       ftstatus        query    string false "申请状态(逗号隔开,如1,2,3) 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success     200             {array}  models.Ermcp3ParamChangeApp
+// @Failure     500             {object} app.Response
+// @Router      /Ermcp3/QueryParamChangeApp [get]
+// @Tags        企业风险管理v3(app)
 func QueryParamChangeApp(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3ParamChangeApp{}
@@ -721,14 +721,14 @@ func QueryParamChangeApp(c *gin.Context) {
 }
 
 // QueryErmcp3ContractMiddleGoodsCfg
-// @Summary 查询现货合同期现配置信息
-// @Produce json
+// @Summary  查询现货合同期现配置信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param spotcontractid query string true "合同id"
-// @Success 200 {array} models.Ermcp3ContractMiddleGoodsCfg
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QueryErmcp3ContractMiddleGoodsCfg [get]
-// @Tags 企业风险管理v3(app)
+// @Param    spotcontractid query    string true "合同id"
+// @Success  200            {array}  models.Ermcp3ContractMiddleGoodsCfg
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp3/QueryErmcp3ContractMiddleGoodsCfg [get]
+// @Tags     企业风险管理v3(app)
 func QueryErmcp3ContractMiddleGoodsCfg(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3ContractMiddleGoodsCfg{}

+ 136 - 136
controllers/ermcp3/qryErmcp3Report.go

@@ -44,11 +44,11 @@ func (v QueryDate) IsNumberic(queryType int32) bool {
 }
 
 // QryReportReq 查报表请求
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表 2-报表明细"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param middlegoodsid query int false "套保品种ID, 查询类型为2时起效"
+// @Param userid        query int    true  "用户ID"
+// @Param querytype     query int    true  "查询类型 1-报表 2-报表明细"
+// @Param cycletype     query int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param cycletime     query string true  "周期时间 日(YYYYMMDD) 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param middlegoodsid query int    false "套保品种ID, 查询类型为2时起效"
 type QryReportReq struct {
 	USERID        int64  `form:"userid" binding:"required"`    // 用户id
 	QUERYTYPE     int32  `form:"querytype"`                    // 查询类型
@@ -225,17 +225,17 @@ func QryReportMonthSpotDetail(c *gin.Context) {
 }
 
 // QryAreaExpourseReport
-// @Summary 查询敞口报表
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表, 这个接口只查报表;明细的字段完全不同,另有接口"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Success 200 {array} models.Ermcp3ExpourseReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaExpourseReport [get]
-// @Tags 企业风险管理v3(app)
+// @Summary  查询敞口报表
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    userid    query    int    true "用户ID"
+// @Param    querytype query    int    true "查询类型 1-报表, 这个接口只查报表;明细的字段完全不同,另有接口"
+// @Param    cycletype query    int    true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime query    string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Success  200       {array}  models.Ermcp3ExpourseReport
+// @Failure  500       {object} app.Response
+// @Router   /Ermcp3/QryAreaExpourseReport [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaExpourseReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportReq{}
@@ -249,17 +249,17 @@ func QryAreaExpourseReport(c *gin.Context) {
 }
 
 // QryAreaExpourseContractDetail
-// @Summary 查询敞口合同明细(敞口报表/现货合同明细)
-// @Produce json
+// @Summary  查询敞口合同明细(敞口报表/现货合同明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保商品id"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Success 200 {array} models.Ermcp3ExposureContractDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaExpourseContractDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid        query    int    true "用户ID"
+// @Param    middlegoodsid query    int    true "套保商品id"
+// @Param    cycletype     query    int    true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime     query    string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Success  200           {array}  models.Ermcp3ExposureContractDetail
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QryAreaExpourseContractDetail [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaExpourseContractDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	tmp := struct {
@@ -278,17 +278,17 @@ func QryAreaExpourseContractDetail(c *gin.Context) {
 }
 
 // QryAreaExpourseHedgeplanDetail
-// @Summary 查询敞口套保计划明细(敞口报表/套保计划明细)
-// @Produce json
+// @Summary  查询敞口套保计划明细(敞口报表/套保计划明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保商品id"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Success 200 {array} models.Ermcp3ExposureHedgeplanDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaExpourseHedgeplanDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid        query    int    true "用户ID"
+// @Param    middlegoodsid query    int    true "套保商品id"
+// @Param    cycletype     query    int    true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime     query    string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Success  200           {array}  models.Ermcp3ExposureHedgeplanDetail
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QryAreaExpourseHedgeplanDetail [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaExpourseHedgeplanDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	tmp := struct {
@@ -307,17 +307,17 @@ func QryAreaExpourseHedgeplanDetail(c *gin.Context) {
 }
 
 // QryAreaExpourseFutuDetail
-// @Summary 查询敞口期货明细(敞口报表/期货明细)
-// @Produce json
+// @Summary  查询敞口期货明细(敞口报表/期货明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保商品id"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Success 200 {array} models.Ermcp3ExposureFutuDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaExpourseFutuDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid        query    int    true "用户ID"
+// @Param    middlegoodsid query    int    true "套保商品id"
+// @Param    cycletype     query    int    true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime     query    string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Success  200           {array}  models.Ermcp3ExposureFutuDetail
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QryAreaExpourseFutuDetail [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaExpourseFutuDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	tmp := struct {
@@ -336,17 +336,17 @@ func QryAreaExpourseFutuDetail(c *gin.Context) {
 }
 
 // QryAreaExpourseParamChLogDetail
-// @Summary 查询敞口参数调整明细(敞口报表/参数调整明细)
-// @Produce json
+// @Summary  查询敞口参数调整明细(敞口报表/参数调整明细)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保商品id"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Success 200 {array} models.Ermcp3ExposureParamChLog
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaExpourseParamChLogDetail [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid        query    int    true "用户ID"
+// @Param    middlegoodsid query    int    true "套保商品id"
+// @Param    cycletype     query    int    true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime     query    string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Success  200           {array}  models.Ermcp3ExposureParamChLog
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QryAreaExpourseParamChLogDetail [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaExpourseParamChLogDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	tmp := struct {
@@ -365,21 +365,21 @@ func QryAreaExpourseParamChLogDetail(c *gin.Context) {
 }
 
 // QryAreaSpotplReport
-// @Summary 查询现货报表
+// @Summary     查询现货报表
 // @Description 目前pcweb的日/周/月报表与手机端的汇总维度不同, 所以增加了可选参数sumflag参数, pcweb请填1
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表 2-报表明细"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param deliverygoodsid query int false "现货品种id(明细必填)"
-// @Param currencyid query int false "币种id(明细必填)"
-// @Param sumflag query int false "日/周/月报表汇总维度 1:品种+品类"
-// @Success 200 {array} models.Ermcp3AreaSpotPLReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaSpotplReport [get]
-// @Tags 企业风险管理v3(app)
+// @Param       userid          query    int    true  "用户ID"
+// @Param       querytype       query    int    true  "查询类型 1-报表 2-报表明细"
+// @Param       cycletype       query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param       cycletime       query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param       deliverygoodsid query    int    false "现货品种id(明细必填)"
+// @Param       currencyid      query    int    false "币种id(明细必填)"
+// @Param       sumflag         query    int    false "日/周/月报表汇总维度 1:品种+品类"
+// @Success     200             {array}  models.Ermcp3AreaSpotPLReport
+// @Failure     500             {object} app.Response
+// @Router      /Ermcp3/QryAreaSpotplReport [get]
+// @Tags        企业风险管理v3(app)
 func QryAreaSpotplReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportReq{}
@@ -412,19 +412,19 @@ func QryAreaSpotplReport(c *gin.Context) {
 }
 
 // QryFinanceReport
-// @Summary 查询财务报表
-// @Produce json
+// @Summary  查询财务报表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表 2-报表明细"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param currencyid query int false "币种id(报表明细必填)"
-// @Param sumfields query string false "汇总维度(逗号隔开) 1-品种 2-品类 3-品牌"
-// @Success 200 {array} models.Ermcp3FinanceReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryFinanceReport [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid     query    int    true  "用户ID"
+// @Param    querytype  query    int    true  "查询类型 1-报表 2-报表明细"
+// @Param    cycletype  query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime  query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param    currencyid query    int    false "币种id(报表明细必填)"
+// @Param    sumfields  query    string false "汇总维度(逗号隔开) 1-品种 2-品类 3-品牌"
+// @Success  200        {array}  models.Ermcp3FinanceReport
+// @Failure  500        {object} app.Response
+// @Router   /Ermcp3/QryFinanceReport [get]
+// @Tags     企业风险管理v3(app)
 func QryFinanceReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportReq{}
@@ -458,22 +458,22 @@ func QryFinanceReport(c *gin.Context) {
 }
 
 // QryAreaStockReport
-// @Summary 查询库存报表
-// @Produce json
+// @Summary  查询库存报表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表 2-报表明细"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param sumfields query string false "汇总维度(逗号隔开) 1-品种 2-品类 3-品牌 4-仓库"
-// @Param deliverygoodsid query int false "品种ID"
-// @Param wrstandardid query int false "品类ID"
-// @Param spotgoodsbrandid query int false "品牌ID"
-// @Param warehouseinfoid query int false "仓库ID"
-// @Success 200 {array} models.Ermcp3AreaStockReportEx
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaStockReport [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid           query    int    true  "用户ID"
+// @Param    querytype        query    int    true  "查询类型 1-报表 2-报表明细"
+// @Param    cycletype        query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime        query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param    sumfields        query    string false "汇总维度(逗号隔开) 1-品种 2-品类 3-品牌 4-仓库"
+// @Param    deliverygoodsid  query    int    false "品种ID"
+// @Param    wrstandardid     query    int    false "品类ID"
+// @Param    spotgoodsbrandid query    int    false "品牌ID"
+// @Param    warehouseinfoid  query    int    false "仓库ID"
+// @Success  200              {array}  models.Ermcp3AreaStockReportEx
+// @Failure  500              {object} app.Response
+// @Router   /Ermcp3/QryAreaStockReport [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaStockReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportReq{}
@@ -548,19 +548,19 @@ func QueryAreaStockReportDetail(c *gin.Context) {
 }
 
 // QryAreaSumPL
-// @Summary 查询汇总损益表
-// @Produce json
+// @Summary  查询汇总损益表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表 2-报表明细"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param currencyid query int false "币种id(明细必填)"
-// @Param middlegoodsid query int false "套保品种ID, 查询类型为2时起效"
-// @Success 200 {array} models.Ermcp3ArealSumPL
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryAreaSumPL [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid        query    int    true  "用户ID"
+// @Param    querytype     query    int    true  "查询类型 1-报表 2-报表明细"
+// @Param    cycletype     query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime     query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param    currencyid    query    int    false "币种id(明细必填)"
+// @Param    middlegoodsid query    int    false "套保品种ID, 查询类型为2时起效"
+// @Success  200           {array}  models.Ermcp3ArealSumPL
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp3/QryAreaSumPL [get]
+// @Tags     企业风险管理v3(app)
 func QryAreaSumPL(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportReq{}
@@ -583,21 +583,21 @@ func QryAreaSumPL(c *gin.Context) {
 }
 
 // QryTaFutureDataReport
-// @Summary 查询期货报表
-// @Produce json
+// @Summary  查询期货报表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1-报表 2-报表明细"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param currencyid query int false "币种id(查明细必填)"
-// @Param goodsgroupid query int false "品种id(查明细必填)"
-// @Param goodsid query int false "商品id(查明细必填)"
-// @Param buyorsell query int false "买卖方向(查明细必填)"
-// @Success 200 {array} models.Ermcp3TaFutuReDataReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QryTaFutureDataReport [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid       query    int    true  "用户ID"
+// @Param    querytype    query    int    true  "查询类型 1-报表 2-报表明细"
+// @Param    cycletype    query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime    query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param    currencyid   query    int    false "币种id(查明细必填)"
+// @Param    goodsgroupid query    int    false "品种id(查明细必填)"
+// @Param    goodsid      query    int    false "商品id(查明细必填)"
+// @Param    buyorsell    query    int    false "买卖方向(查明细必填)"
+// @Success  200          {array}  models.Ermcp3TaFutuReDataReport
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp3/QryTaFutureDataReport [get]
+// @Tags     企业风险管理v3(app)
 func QryTaFutureDataReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := QryReportReq{}
@@ -627,21 +627,21 @@ func QryTaFutureDataReport(c *gin.Context) {
 }
 
 // QrySCMiddleGoodsReport
-// @Summary 查询定价报表
-// @Produce json
+// @Summary  查询定价报表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param spotcontractid query int fasle "合同id"
-// @Param middlegoodsid query int fasle "套保品种id"
-// @Param deliverygoodsid query int fasle "现货品种id"
-// @Param wrstandardid query int fasle "现货商品id"
-// @Param contractno query string fasle "合同编号(模糊匹配)"
-// @Success 200 {array} models.Ermcp3SCMiddleGoodsReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp3/QrySCMiddleGoodsReport [get]
-// @Tags 企业风险管理v3(app)
+// @Param    userid          query    int    true  "用户ID"
+// @Param    cycletype       query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime       query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param    spotcontractid  query    int    fasle "合同id"
+// @Param    middlegoodsid   query    int    fasle "套保品种id"
+// @Param    deliverygoodsid query    int    fasle "现货品种id"
+// @Param    wrstandardid    query    int    fasle "现货商品id"
+// @Param    contractno      query    string fasle "合同编号(模糊匹配)"
+// @Success  200             {array}  models.Ermcp3SCMiddleGoodsReport
+// @Failure  500             {object} app.Response
+// @Router   /Ermcp3/QrySCMiddleGoodsReport [get]
+// @Tags     企业风险管理v3(app)
 func QrySCMiddleGoodsReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp3SCMiddleGoodsReport{}

+ 156 - 156
controllers/ermcp8/qryErmcp8.go

@@ -11,17 +11,17 @@ import (
 )
 
 // QueryErmcp2HedgedItem
-// @Summary 查询被套期项目信息
+// @Summary     查询被套期项目信息
 // @description 已完成项目查询 -> 项目状态 = 3:正常完结 or 5:异常完结
-// @Produce json
-// @Security ApiKeyAuth
-// @Param userid query string true "用户ID"
-// @Param hedgedtype query int false "套期类型 1:采购计划项目 2:销售计划项目 3:现货贸易项目 4:库存存货项目 5:定价采购合同项目"
-// @Param hedgeditemstatus query int false "项目状态 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
-// @Success 200 {array} models.Ermcp2hedgeditem
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp2HedgedItem [get]
-// @Tags 企业风险管理v8
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       userid           query    string true  "用户ID"
+// @Param       hedgedtype       query    int    false "套期类型 1:采购计划项目 2:销售计划项目 3:现货贸易项目 4:库存存货项目 5:定价采购合同项目"
+// @Param       hedgeditemstatus query    int    false "项目状态 0:未提交 1:待审核 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
+// @Success     200              {array}  models.Ermcp2hedgeditem
+// @Failure     500              {object} app.Response
+// @Router      /Ermcp8/QueryErmcp2HedgedItem [get]
+// @Tags        企业风险管理v8
 func QueryErmcp2HedgedItem(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp2hedgeditem{}
@@ -30,14 +30,14 @@ func QueryErmcp2HedgedItem(c *gin.Context) {
 }
 
 // QueryERMCPJRLinkPos
-// @Summary 期货持仓明细查询
-// @Produce json
+// @Summary  期货持仓明细查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param hedgeditemid query int true "套期项目ID"
-// @Success 200 {array} models.Ermcpjrlinkpos
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryERMCPJRLinkPos [get]
-// @Tags 企业风险管理v8
+// @Param    hedgeditemid query    int true "套期项目ID"
+// @Success  200          {array}  models.Ermcpjrlinkpos
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp8/QueryERMCPJRLinkPos [get]
+// @Tags     企业风险管理v8
 func QueryERMCPJRLinkPos(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcpjrlinkpos{}
@@ -46,14 +46,14 @@ func QueryERMCPJRLinkPos(c *gin.Context) {
 }
 
 // QueryERMCP2HedgedItemspot
-// @Summary 套期计划明细查询
-// @Produce json
+// @Summary  套期计划明细查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param hedgeditemid query int true "套期项目ID"
-// @Success 200 {array} models.Ermcp2hedgeditemspot
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryERMCP2HedgedItemspot [get]
-// @Tags 企业风险管理v8
+// @Param    hedgeditemid query    int true "套期项目ID"
+// @Success  200          {array}  models.Ermcp2hedgeditemspot
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp8/QueryERMCP2HedgedItemspot [get]
+// @Tags     企业风险管理v8
 func QueryERMCP2HedgedItemspot(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp2hedgeditemspot{}
@@ -62,14 +62,14 @@ func QueryERMCP2HedgedItemspot(c *gin.Context) {
 }
 
 // QueryERMCP2HedgedItemSpotDetail
-// @Summary 现货成交明细查询
-// @Produce json
+// @Summary  现货成交明细查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param hedgeditemid query int true "套期项目ID"
-// @Success 200 {array} models.Ermcp2hedgeditemspotDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryERMCP2HedgedItemSpotDetail [get]
-// @Tags 企业风险管理v8
+// @Param    hedgeditemid query    int true "套期项目ID"
+// @Success  200          {array}  models.Ermcp2hedgeditemspotDetail
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp8/QueryERMCP2HedgedItemSpotDetail [get]
+// @Tags     企业风险管理v8
 func QueryERMCP2HedgedItemSpotDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp2hedgeditemspotDetail{}
@@ -78,14 +78,14 @@ func QueryERMCP2HedgedItemSpotDetail(c *gin.Context) {
 }
 
 // QueryERMCPPatradeLinkDetail
-// @Summary 期货成交单明细查询
-// @Produce json
+// @Summary  期货成交单明细查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param hedgeditemid query int true "套期项目ID"
-// @Success 200 {array} models.Ermcppatradelinkdetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryERMCPPatradeLinkDetail [get]
-// @Tags 企业风险管理v8
+// @Param    hedgeditemid query    int true "套期项目ID"
+// @Success  200          {array}  models.Ermcppatradelinkdetail
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp8/QueryERMCPPatradeLinkDetail [get]
+// @Tags     企业风险管理v8
 func QueryERMCPPatradeLinkDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcppatradelinkdetail{}
@@ -94,21 +94,21 @@ func QueryERMCPPatradeLinkDetail(c *gin.Context) {
 }
 
 // QueryInternalUncorrelatedTradeDetail
-// @Summary 内部未关联成交单查询
-// @Produce json
+// @Summary  内部未关联成交单查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户编号"
-// @Param begindate query string false "起始日期(格式yyyymmdd)"
-// @Param enddate query string false "终止日期(格式yyyymmdd)"
-// @Param goodscode query string false "合约代码"
-// @Param goodsname query string false "合约名称"
-// @Param tradeid query int false "成交单号"
-// @Param buyorsell query int false "方向 - 0:买 1:卖"
-// @Param accountname query string false "套期主体"
-// @Success 200 {array} models.InternalUncorrelatedTradeDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryInternalUncorrelatedTradeDetail [get]
-// @Tags 企业风险管理v8
+// @Param    userid      query    int    true  "用户编号"
+// @Param    begindate   query    string false "起始日期(格式yyyymmdd)"
+// @Param    enddate     query    string false "终止日期(格式yyyymmdd)"
+// @Param    goodscode   query    string false "合约代码"
+// @Param    goodsname   query    string false "合约名称"
+// @Param    tradeid     query    int    false "成交单号"
+// @Param    buyorsell   query    int    false "方向 - 0:买 1:卖"
+// @Param    accountname query    string false "套期主体"
+// @Success  200         {array}  models.InternalUncorrelatedTradeDetail
+// @Failure  500         {object} app.Response
+// @Router   /Ermcp8/QueryInternalUncorrelatedTradeDetail [get]
+// @Tags     企业风险管理v8
 func QueryInternalUncorrelatedTradeDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.InternalUncorrelatedTradeDetail{BUYORSELL: -1}
@@ -117,16 +117,16 @@ func QueryInternalUncorrelatedTradeDetail(c *gin.Context) {
 }
 
 // QueryInternalEnableTradeDetail
-// @Summary 内部成交单可关联项目查询
-// @Produce json
+// @Summary  内部成交单可关联项目查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param areauserid query int true "企业ID"
-// @Param goodsid query int true "期货合约ID"
-// @Param tradeuserid query int true "交易用户ID"
-// @Success 200 {array} models.InternalEnableTradeDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryInternalEnableTradeDetail [get]
-// @Tags 企业风险管理v8
+// @Param    areauserid  query    int true "企业ID"
+// @Param    goodsid     query    int true "期货合约ID"
+// @Param    tradeuserid query    int true "交易用户ID"
+// @Success  200         {array}  models.InternalEnableTradeDetail
+// @Failure  500         {object} app.Response
+// @Router   /Ermcp8/QueryInternalEnableTradeDetail [get]
+// @Tags     企业风险管理v8
 func QueryInternalEnableTradeDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.InternalEnableTradeDetail{}
@@ -135,20 +135,20 @@ func QueryInternalEnableTradeDetail(c *gin.Context) {
 }
 
 // QueryErmcp8HedgeditemReport
-// @Summary 套期项目报表查询
-// @Produce json
+// @Summary  套期项目报表查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param cycletype query int false "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
-// @Param hedgedtype query int false "套期类型 - 1:采购计划项目 2:销售计划项目 3:现货贸易项目 4:库存存货项目 5:定价采购合同项目"
-// @Param hedgeditemstatus query int false "项目状态 - 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
-// @Param hedgeditemnum query string false "项目编号,模糊查询"
-// @Param wrstandardid query int false "现货商品ID"
-// @Success 200 {array} models.Ermcp8HedgeditemReport
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp8HedgeditemReport [get]
-// @Tags 企业风险管理v8
+// @Param    userid           query    int    true  "用户ID"
+// @Param    cycletype        query    int    false "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime        query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM) 季(YYYYQ) 年(YYYY) 周(YYYYMMDD周内任意一天) 全(0)【原值】"
+// @Param    hedgedtype       query    int    false "套期类型 - 1:采购计划项目 2:销售计划项目 3:现货贸易项目 4:库存存货项目 5:定价采购合同项目"
+// @Param    hedgeditemstatus query    int    false "项目状态 - 2:执行中 3:正常完结 4:审核拒绝 5:异常完结 6:已撤回"
+// @Param    hedgeditemnum    query    string false "项目编号,模糊查询"
+// @Param    wrstandardid     query    int    false "现货商品ID"
+// @Success  200              {array}  models.Ermcp8HedgeditemReport
+// @Failure  500              {object} app.Response
+// @Router   /Ermcp8/QueryErmcp8HedgeditemReport [get]
+// @Tags     企业风险管理v8
 func QueryErmcp8HedgeditemReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp8HedgeditemReport{}
@@ -157,18 +157,18 @@ func QueryErmcp8HedgeditemReport(c *gin.Context) {
 }
 
 // QueryUnLinkSpotContract
-// @Summary 未关联合同查询
-// @Produce json
+// @Summary  未关联合同查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param pricetype query int false "定价类型 - 1:一口价 2:点价 3:暂定价"
-// @Param contractno query string false "合同编号, 模拟查询"
-// @Param customername query string false "对手方, 模拟查询"
-// @Param contracttype query int false "项合同类型 - 1:采购 -1:销售"
-// @Success 200 {array} models.ErmcpSpotContractModelEx
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryUnLinkSpotContract [get]
-// @Tags 企业风险管理v8
+// @Param    userid       query    int    true  "用户ID"
+// @Param    pricetype    query    int    false "定价类型 - 1:一口价 2:点价 3:暂定价"
+// @Param    contractno   query    string false "合同编号, 模拟查询"
+// @Param    customername query    string false "对手方, 模拟查询"
+// @Param    contracttype query    int    false "项合同类型 - 1:采购 -1:销售"
+// @Success  200          {array}  models.ErmcpSpotContractModelEx
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp8/QueryUnLinkSpotContract [get]
+// @Tags     企业风险管理v8
 func QueryUnLinkSpotContract(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req models.QrySpotContractExReq
@@ -187,16 +187,16 @@ func QueryUnLinkSpotContract(c *gin.Context) {
 }
 
 // QueryErmcp8EnableHedgeditem
-// @Summary 可关联项目查询
-// @Produce json
+// @Summary  可关联项目查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param spottype query int true "现货类型 - 1:采购计划 2:销售计划 3:采购合同 4:销售合同 5:库存存货"
-// @Param wrstandardid query int false "现货商品ID"
-// @Success 200 {array} models.Ermcp8EnableHedgeditem
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp8EnableHedgeditem [get]
-// @Tags 企业风险管理v8
+// @Param    userid       query    int true  "用户ID"
+// @Param    spottype     query    int true  "现货类型 - 1:采购计划 2:销售计划 3:采购合同 4:销售合同 5:库存存货"
+// @Param    wrstandardid query    int false "现货商品ID"
+// @Success  200          {array}  models.Ermcp8EnableHedgeditem
+// @Failure  500          {object} app.Response
+// @Router   /Ermcp8/QueryErmcp8EnableHedgeditem [get]
+// @Tags     企业风险管理v8
 func QueryErmcp8EnableHedgeditem(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp8EnableHedgeditem{}
@@ -205,14 +205,14 @@ func QueryErmcp8EnableHedgeditem(c *gin.Context) {
 }
 
 // QueryErmcp8RunningHedgeditem
-// @Summary 查询执行中项目查询信息
-// @Produce json
+// @Summary  查询执行中项目查询信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query string true "用户ID"
-// @Success 200 {array} models.Ermcp8RunningHedgeditem
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp8RunningHedgeditem [get]
-// @Tags 企业风险管理v8
+// @Param    userid query    string true "用户ID"
+// @Success  200    {array}  models.Ermcp8RunningHedgeditem
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp8/QueryErmcp8RunningHedgeditem [get]
+// @Tags     企业风险管理v8
 func QueryErmcp8RunningHedgeditem(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req models.Ermcp8RunningHedgeditem
@@ -231,14 +231,14 @@ func QueryErmcp8RunningHedgeditem(c *gin.Context) {
 }
 
 // QueryErmcp2AreaExposure
-// @Summary 企业敞口查询
-// @Produce json
+// @Summary  企业敞口查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query string true "用户ID"
-// @Success 200 {array} models.Ermcp2AreaExposure
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp2AreaExposure [get]
-// @Tags 企业风险管理v8
+// @Param    userid query    string true "用户ID"
+// @Success  200    {array}  models.Ermcp2AreaExposure
+// @Failure  500    {object} app.Response
+// @Router   /Ermcp8/QueryErmcp2AreaExposure [get]
+// @Tags     企业风险管理v8
 func QueryErmcp2AreaExposure(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req models.Ermcp2AreaExposure
@@ -257,15 +257,15 @@ func QueryErmcp2AreaExposure(c *gin.Context) {
 }
 
 // QueryErmcp2StockSpotChangeLog
-// @Summary 敞口明细 - 现货变动明细查询
-// @Produce json
+// @Summary  敞口明细 - 现货变动明细查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保品种ID"
-// @Success 200 {array} models.Ermcp2stockspotchangelog
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp2StockSpotChangeLog [get]
-// @Tags 企业风险管理v8
+// @Param    userid        query    int true "用户ID"
+// @Param    middlegoodsid query    int true "套保品种ID"
+// @Success  200           {array}  models.Ermcp2stockspotchangelog
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp8/QueryErmcp2StockSpotChangeLog [get]
+// @Tags     企业风险管理v8
 func QueryErmcp2StockSpotChangeLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp2stockspotchangelog{}
@@ -274,15 +274,15 @@ func QueryErmcp2StockSpotChangeLog(c *gin.Context) {
 }
 
 // QueryErmcp2HedgedItemsDetail
-// @Summary 敞口明细 - 计划变动明细
-// @Produce json
+// @Summary  敞口明细 - 计划变动明细
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保品种ID"
-// @Success 200 {array} models.Ermcp2hedgeditemsDetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp2HedgedItemsDetail [get]
-// @Tags 企业风险管理v8
+// @Param    userid        query    int true "用户ID"
+// @Param    middlegoodsid query    int true "套保品种ID"
+// @Success  200           {array}  models.Ermcp2hedgeditemsDetail
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp8/QueryErmcp2HedgedItemsDetail [get]
+// @Tags     企业风险管理v8
 func QueryErmcp2HedgedItemsDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp2hedgeditemsDetail{}
@@ -291,15 +291,15 @@ func QueryErmcp2HedgedItemsDetail(c *gin.Context) {
 }
 
 // QueryPatradeLinkDetail
-// @Summary 敞口明细 - 期货变动明细
-// @Produce json
+// @Summary  敞口明细 - 期货变动明细
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param middlegoodsid query int true "套保品种ID"
-// @Success 200 {array} models.Patradelinkdetail
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryPatradeLinkDetail [get]
-// @Tags 企业风险管理v8
+// @Param    userid        query    int true "用户ID"
+// @Param    middlegoodsid query    int true "套保品种ID"
+// @Success  200           {array}  models.Patradelinkdetail
+// @Failure  500           {object} app.Response
+// @Router   /Ermcp8/QueryPatradeLinkDetail [get]
+// @Tags     企业风险管理v8
 func QueryPatradeLinkDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Patradelinkdetail{}
@@ -308,17 +308,17 @@ func QueryPatradeLinkDetail(c *gin.Context) {
 }
 
 // QueryUnLinkErmcpHedgePlan
-// @Summary 未关联购销计划
-// @Produce json
+// @Summary  未关联购销计划
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param areauserid query int true "企业ID"
-// @Param contracttype query int false "计划类型 - 1:采购 -1:销售"
-// @Param hedgeplanno query string false "计划编号,模糊查询"
-// @Param wrstandardname query string false "现货商品,模糊查询"
-// @Success 200 {array} models.Unlinkermcphedgeplan
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryUnLinkErmcpHedgePlan [get]
-// @Tags 企业风险管理v8
+// @Param    areauserid     query    int    true  "企业ID"
+// @Param    contracttype   query    int    false "计划类型 - 1:采购 -1:销售"
+// @Param    hedgeplanno    query    string false "计划编号,模糊查询"
+// @Param    wrstandardname query    string false "现货商品,模糊查询"
+// @Success  200            {array}  models.Unlinkermcphedgeplan
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp8/QueryUnLinkErmcpHedgePlan [get]
+// @Tags     企业风险管理v8
 func QueryUnLinkErmcpHedgePlan(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Unlinkermcphedgeplan{}
@@ -327,14 +327,14 @@ func QueryUnLinkErmcpHedgePlan(c *gin.Context) {
 }
 
 // QueryErmcp2HedgedItemLink
-// @Summary 现货合同关联被套期项目查询
-// @Produce json
+// @Summary  现货合同关联被套期项目查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param spotcontractid query int true "现货合同ID"
-// @Success 200 {array} models.Ermcp2hedgeditemlink
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryErmcp2HedgedItemLink [get]
-// @Tags 企业风险管理v8
+// @Param    spotcontractid query    int true "现货合同ID"
+// @Success  200            {array}  models.Ermcp2hedgeditemlink
+// @Failure  500            {object} app.Response
+// @Router   /Ermcp8/QueryErmcp2HedgedItemLink [get]
+// @Tags     企业风险管理v8
 func QueryErmcp2HedgedItemLink(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Ermcp2hedgeditemlink{}
@@ -343,14 +343,14 @@ func QueryErmcp2HedgedItemLink(c *gin.Context) {
 }
 
 // QueryMarketCalendar
-// @Summary 市场节假日查询
-// @Produce json
+// @Summary  市场节假日查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param marketid query int false "市场ID"
-// @Success 200 {array} models.Marketcalendar
-// @Failure 500 {object} app.Response
-// @Router /Ermcp8/QueryMarketCalendar [get]
-// @Tags 企业风险管理v8
+// @Param    marketid query    int false "市场ID"
+// @Success  200      {array}  models.Marketcalendar
+// @Failure  500      {object} app.Response
+// @Router   /Ermcp8/QueryMarketCalendar [get]
+// @Tags     企业风险管理v8
 func QueryMarketCalendar(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.Marketcalendar{}

+ 23 - 23
controllers/erms2/erms2.go

@@ -54,14 +54,14 @@ type QueryInnerTradeDetailRsp struct {
 }
 
 // QueryInnerTradeDetail 查询内部成交单信息
-// @Summary 查询内部成交单信息
-// @Produce json
+// @Summary  查询内部成交单信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountid query int true "资金账户"
-// @Success 200 {object} QueryInnerTradeDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms2/QueryInnerTradeDetail [get]
-// @Tags 风险管理
+// @Param    accountid query    int true "资金账户"
+// @Success  200       {object} QueryInnerTradeDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Erms2/QueryInnerTradeDetail [get]
+// @Tags     风险管理
 func QueryInnerTradeDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -180,15 +180,15 @@ type QueryArbitrageStrategyRsp struct {
 }
 
 // QueryArbitrageStrategy 查询期现套利策略表信息(指定资金账户、未结束的)
-// @Summary 查询期现套利策略表信息(指定资金账户、未结束的)
-// @Produce json
+// @Summary  查询期现套利策略表信息(指定资金账户、未结束的)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "账户ID"
-// @Param goodsgroupid query string false "商品组ID(品种ID)"
-// @Success 200 {object} QueryArbitrageStrategyRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms2/QueryArbitrageStrategy [get]
-// @Tags 风险管理
+// @Param    userid       query    int    true  "账户ID"
+// @Param    goodsgroupid query    string false "商品组ID(品种ID)"
+// @Success  200          {object} QueryArbitrageStrategyRsp
+// @Failure  500          {object} app.Response
+// @Router   /Erms2/QueryArbitrageStrategy [get]
+// @Tags     风险管理
 func QueryArbitrageStrategy(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -317,15 +317,15 @@ type QuerySpotContractRsp struct {
 }
 
 // QuerySpotContract 查询现货合同表信息(指定策略ID、未结束的)
-// @Summary 查询现货合同表信息(指定策略ID、未结束的)
-// @Produce json
+// @Summary  查询现货合同表信息(指定策略ID、未结束的)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param asapplyid query uint64 true "策略申请ID"
-// @Param spotcontractid query uint64 false "现货合同ID"
-// @Success 200 {object} QuerySpotContractRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms2/QuerySpotContract [get]
-// @Tags 风险管理
+// @Param    asapplyid      query    uint64 true  "策略申请ID"
+// @Param    spotcontractid query    uint64 false "现货合同ID"
+// @Success  200            {object} QuerySpotContractRsp
+// @Failure  500            {object} app.Response
+// @Router   /Erms2/QuerySpotContract [get]
+// @Tags     风险管理
 func QuerySpotContract(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 22 - 22
controllers/erms3/business.go

@@ -42,15 +42,15 @@ type QueryBusinessInfoRsp struct {
 }
 
 // QueryBusinessInfo 查询业务数据
-// @Summary 查询业务表单数据
-// @Produce json
+// @Summary  查询业务表单数据
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountids query string true "资金账号ID列表,用逗号分隔"
-// @Param status query int true "状态,0为未结束 1为已结束"
-// @Success 200 {array} QueryBusinessInfoRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QueryBusinessInfo [get]
-// @Tags 风险管理v3
+// @Param    accountids query    string true "资金账号ID列表,用逗号分隔"
+// @Param    status     query    int    true "状态,0为未结束 1为已结束"
+// @Success  200        {array}  QueryBusinessInfoRsp
+// @Failure  500        {object} app.Response
+// @Router   /Erms3/QueryBusinessInfo [get]
+// @Tags     风险管理v3
 func QueryBusinessInfo(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -249,14 +249,14 @@ type AddErms2ASApplyReq struct {
 }
 
 // AddErms2ASApply 新增期现套利业务申请
-// @Summary 新增期现套利业务申请
-// @Produce json
+// @Summary  新增期现套利业务申请
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param jsonBody body AddErms2ASApplyReq true "申请参数"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Erms3/AddErms2ASApply [post]
-// @Tags 风险管理v3
+// @Param    jsonBody body     AddErms2ASApplyReq true "申请参数"
+// @Success  200      {object} app.Response
+// @Failure  500      {object} app.Response
+// @Router   /Erms3/AddErms2ASApply [post]
+// @Tags     风险管理v3
 func AddErms2ASApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -287,14 +287,14 @@ type AddErms2SpotTradeApplyReq struct {
 }
 
 // AddErms2SpotTradeApply 新增现货贸易业务申请
-// @Summary 新增现货贸易业务申请
-// @Produce json
+// @Summary  新增现货贸易业务申请
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param jsonBody body AddErms2SpotTradeApplyReq true "申请参数"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Erms3/AddErms2SpotTradeApply [post]
-// @Tags 风险管理v3
+// @Param    jsonBody body     AddErms2SpotTradeApplyReq true "申请参数"
+// @Success  200      {object} app.Response
+// @Failure  500      {object} app.Response
+// @Router   /Erms3/AddErms2SpotTradeApply [post]
+// @Tags     风险管理v3
 func AddErms2SpotTradeApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 41 - 41
controllers/erms3/customer.go

@@ -20,14 +20,14 @@ type AddUserInfoApplyReq struct {
 }
 
 // AddUserInfoApply 新增客户申请
-// @Summary 新增客户申请
-// @Produce json
-// @Security ApiKeyAuth
-// @Param jsonBody body AddUserInfoApplyReq true "用户信息"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Erms3/AddUserInfoApply [post]
-// @Tags 风险管理v3
+// @Summary  新增客户申请
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    jsonBody body     AddUserInfoApplyReq true "用户信息"
+// @Success  200      {object} app.Response
+// @Failure  500      {object} app.Response
+// @Router   /Erms3/AddUserInfoApply [post]
+// @Tags     风险管理v3
 func AddUserInfoApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -61,15 +61,15 @@ type ModifyUserInfoApplyReq struct {
 }
 
 // ModifyUserInfoApply 修改客户申请
-// @Summary 修改客户申请
+// @Summary     修改客户申请
 // @description 保存草稿(撤回)- { "userid": int, "userstate": 1 }  提交审核 - { "userid": int, "userstate": 2 }
-// @Produce json
-// @Security ApiKeyAuth
-// @Param jsonBody body ModifyUserInfoApplyReq true "用户信息"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Erms3/ModifyUserInfoApply [post]
-// @Tags 风险管理v3
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       jsonBody body     ModifyUserInfoApplyReq true "用户信息"
+// @Success     200      {object} app.Response
+// @Failure     500      {object} app.Response
+// @Router      /Erms3/ModifyUserInfoApply [post]
+// @Tags        风险管理v3
 func ModifyUserInfoApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -100,15 +100,15 @@ type DeleteUserInfoApplyReq struct {
 }
 
 // DeleteUserInfoApply 删除客户申请
-// @Summary 删除客户申请
+// @Summary     删除客户申请
 // @description 只可删除 UserState = 1 (未提交)状态的申请信息
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /Erms3/DeleteUserInfoApply [get]
-// @Tags 风险管理v3
+// @Param       userID query    int true "用户ID"
+// @Success     200    {object} app.Response
+// @Failure     500    {object} app.Response
+// @Router      /Erms3/DeleteUserInfoApply [get]
+// @Tags        风险管理v3
 func DeleteUserInfoApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -151,16 +151,16 @@ type QueryUserInfoAppliesRsp struct {
 }
 
 // QueryUserInfoApplies 客户申请信息查询
-// @Summary 客户申请信息查询
-// @Produce json
+// @Summary  客户申请信息查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param userName query string false "客户名称,支持模糊查询"
-// @Success 200 {object} QueryUserInfoAppliesRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QueryUserInfoApplies [get]
-// @Tags 风险管理v3
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
+// @Param    userName query    string false "客户名称,支持模糊查询"
+// @Success  200      {object} QueryUserInfoAppliesRsp
+// @Failure  500      {object} app.Response
+// @Router   /Erms3/QueryUserInfoApplies [get]
+// @Tags     风险管理v3
 func QueryUserInfoApplies(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -250,16 +250,16 @@ type QueryUserInfosRsp struct {
 }
 
 // QueryUserInfos 客户信息查询
-// @Summary 客户信息查询
-// @Produce json
+// @Summary  客户信息查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param userName query string false "客户名称,支持模糊查询"
-// @Success 200 {object} QueryUserInfosRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QueryUserInfos [get]
-// @Tags 风险管理v3
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
+// @Param    userName query    string false "客户名称,支持模糊查询"
+// @Success  200      {object} QueryUserInfosRsp
+// @Failure  500      {object} app.Response
+// @Router   /Erms3/QueryUserInfos [get]
+// @Tags     风险管理v3
 func QueryUserInfos(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 16 - 16
controllers/erms3/qryContract.go

@@ -238,16 +238,16 @@ func (r *QryAuditContractRsp) ParseFromHGModel(val models.AutditContractHGModel)
 }
 
 // QueryPendingAuditContract  查询待审核合同
-// @Summary 查询待审核合同
-// @Produce json
+// @Summary  查询待审核合同
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountids query string true "资金账号ID列表,逗号隔开"
-// @Param contracttype query int true "合同类型 1-采购 -1-销售"
-// @Param contractmode query int true "合同模式 1-普通 2-回购"
-// @Success 200 {array} QryAuditContractRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QueryPendingAuditContract [get]
-// @Tags 风险管理v3
+// @Param    accountids   query    string true "资金账号ID列表,逗号隔开"
+// @Param    contracttype query    int    true "合同类型 1-采购 -1-销售"
+// @Param    contractmode query    int    true "合同模式 1-普通 2-回购"
+// @Success  200          {array}  QryAuditContractRsp
+// @Failure  500          {object} app.Response
+// @Router   /Erms3/QueryPendingAuditContract [get]
+// @Tags     风险管理v3
 func QueryPendingAuditContract(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryAuditContractReq
@@ -322,14 +322,14 @@ type QryPendingBizReq struct{
 type QryPendingBizRsp models.PendingAuditBizModel
 
 // QueryPendingBusiness  查询待审核基差贸易业务
-// @Summary 查询待审核基差贸易业务
-// @Produce json
+// @Summary  查询待审核基差贸易业务
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountids query string true "资金账号ID列表,逗号隔开"
-// @Success 200 {array} QryPendingBizRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QueryPendingBusiness [get]
-// @Tags 风险管理v3
+// @Param    accountids query    string true "资金账号ID列表,逗号隔开"
+// @Success  200        {array}  QryPendingBizRsp
+// @Failure  500        {object} app.Response
+// @Router   /Erms3/QueryPendingBusiness [get]
+// @Tags     风险管理v3
 func QueryPendingBusiness(c *gin.Context) {
 	appG := app.Gin{C: c}
 	var req QryPendingBizReq

+ 24 - 24
controllers/erms3/spotContract.go

@@ -108,14 +108,14 @@ type AddSpotContractApplyRsp struct {
 }
 
 // AddSpotContractApply 新增现货合同申请
-// @Summary 新增现货合同申请
-// @Produce json
+// @Summary  新增现货合同申请
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param jsonBody body AddSpotContractApplyReq true "申请参数"
-// @Success 200 {object} AddSpotContractApplyRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/AddSpotContractApply [post]
-// @Tags 风险管理v3
+// @Param    jsonBody body     AddSpotContractApplyReq true "申请参数"
+// @Success  200      {object} AddSpotContractApplyRsp
+// @Failure  500      {object} app.Response
+// @Router   /Erms3/AddSpotContractApply [post]
+// @Tags     风险管理v3
 func AddSpotContractApply(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -313,14 +313,14 @@ type QuerySpotContractAppleFormRsp struct {
 }
 
 // QuerySpotContractAppleForm 查询合同申请表单数据
-// @Summary 查询合同申请表单数据
-// @Produce json
+// @Summary  查询合同申请表单数据
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Success 200 {object} QuerySpotContractAppleFormRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QuerySpotContractAppleForm [get]
-// @Tags 风险管理v3
+// @Param    loginID query    int true "登录账号"
+// @Success  200     {object} QuerySpotContractAppleFormRsp
+// @Failure  500     {object} app.Response
+// @Router   /Erms3/QuerySpotContractAppleForm [get]
+// @Tags     风险管理v3
 func QuerySpotContractAppleForm(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -473,17 +473,17 @@ type QuerySpotContractInfoRsp struct {
 }
 
 // QuerySpotContractDetail 查询合同详细信息.
-// @Summary 查询合同详细信息
-// @Produce json
+// @Summary  查询合同详细信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountids query string true "资金账号ID列表,用逗号分隔"
-// @Param contracttype query int true "合同类型,1为采购合同 -1为销售合同"
-// @Param contractmode query int true "合同模式,1为普通合同 2为回购销售合同"
-// @Param status query int true "状态,0为履约中 1为已完成"
-// @Success 200 {array} QuerySpotContractInfoRsp
-// @Failure 500 {object} app.Response
-// @Router /Erms3/QuerySpotContractDetail [get]
-// @Tags 风险管理v3
+// @Param    accountids   query    string true "资金账号ID列表,用逗号分隔"
+// @Param    contracttype query    int    true "合同类型,1为采购合同 -1为销售合同"
+// @Param    contractmode query    int    true "合同模式,1为普通合同 2为回购销售合同"
+// @Param    status       query    int    true "状态,0为履约中 1为已完成"
+// @Success  200          {array}  QuerySpotContractInfoRsp
+// @Failure  500          {object} app.Response
+// @Router   /Erms3/QuerySpotContractDetail [get]
+// @Tags     风险管理v3
 func QuerySpotContractDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 37 - 31
controllers/guangzuan/trade.go

@@ -8,19 +8,21 @@ import (
 )
 
 // QueryBuyOrder
-// @Summary 查询求购大厅委托单
-// @Produce json
+// @Summary  查询求购大厅委托单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param zsallproperties query string false "商品(查询字段-模糊查询)"
-// @Param zscategory query int false "钻石分类枚举ID"
-// @Param wrtradeorderid query int false "委托单号"
-// @Param buyusername query string false "买方(查询字段-模糊查询)"
-// @Success 200 {array} models.BuyOrder
-// @Failure 500 {object} app.Response
-// @Router /Guangzuan/QueryBuyOrder [get]
-// @Tags 广钻
+// @Security LoginID
+// @Security Group
+// @Param    page            query    int    false "页码"
+// @Param    pagesize        query    int    false "每页条数"
+// @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
+// @Param    zscategory      query    int    false "钻石分类枚举ID"
+// @Param    wrtradeorderid  query    int    false "委托单号"
+// @Param    buyusername     query    string false "买方(查询字段-模糊查询)"
+// @Success  200             {array}  models.BuyOrder
+// @Failure  500             {object} app.Response
+// @Router   /Guangzuan/QueryBuyOrder [get]
+// @Tags     广钻
 func QueryBuyOrder(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.BuyOrder{}
@@ -29,19 +31,21 @@ func QueryBuyOrder(c *gin.Context) {
 }
 
 // QuerySellOrder
-// @Summary 查询出售大厅委托单
-// @Produce json
+// @Summary  查询出售大厅委托单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param zsallproperties query string false "商品(查询字段-模糊查询)"
-// @Param zscategory query int false "钻石分类枚举ID"
-// @Param wrtradeorderid query int false "委托单号"
-// @Param buyusername query string false "卖方(查询字段-模糊查询)"
-// @Success 200 {array} models.SellOrder
-// @Failure 500 {object} app.Response
-// @Router /Guangzuan/QuerySellOrder [get]
-// @Tags 广钻
+// @Security LoginID
+// @Security Group
+// @Param    page            query    int    false "页码"
+// @Param    pagesize        query    int    false "每页条数"
+// @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
+// @Param    zscategory      query    int    false "钻石分类枚举ID"
+// @Param    wrtradeorderid  query    int    false "委托单号"
+// @Param    buyusername     query    string false "卖方(查询字段-模糊查询)"
+// @Success  200             {array}  models.SellOrder
+// @Failure  500             {object} app.Response
+// @Router   /Guangzuan/QuerySellOrder [get]
+// @Tags     广钻
 func QuerySellOrder(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.SellOrder{}
@@ -50,14 +54,16 @@ func QuerySellOrder(c *gin.Context) {
 }
 
 // QueryDiamond
-// @Summary 钻石搜索
-// @Produce json
+// @Summary  钻石搜索
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param data body models.SellOrderQueryReq true "钻石搜索入参"
-// @Success 200 {array} models.SellOrder
-// @Failure 500 {object} app.Response
-// @Router /Guangzuan/QueryDiamond [post]
-// @Tags 广钻
+// @Security LoginID
+// @Security Group
+// @Param    data body     models.SellOrderQueryReq true "钻石搜索入参"
+// @Success  200  {array}  models.SellOrder
+// @Failure  500  {object} app.Response
+// @Router   /Guangzuan/QueryDiamond [post]
+// @Tags     广钻
 func QueryDiamond(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := models.SellOrderQueryReq{}

+ 13 - 11
controllers/guangzuan/warehouse.go

@@ -8,18 +8,20 @@ import (
 )
 
 // QueryWarehouseInfo
-// @Summary 查询仓库信息
-// @Produce json
+// @Summary  查询仓库信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param userid query int true "用户ID"
-// @Param status query string false "仓库状态(可多项,逗号隔开) 1:正常 2:注销 3:待审核 4:审核拒绝"
-// @Param isincludeexchange query bool false "是返回交易所仓库"
-// @Success 200 {array} models.GZWarehouseinfo
-// @Failure 500 {object} app.Response
-// @Router /Guangzuan/QueryWarehouseInfo [get]
-// @Tags 广钻
+// @Security LoginID
+// @Security Group
+// @Param    page              query    int    false "页码"
+// @Param    pagesize          query    int    false "每页条数"
+// @Param    userid            query    int    true  "用户ID"
+// @Param    status            query    string false "仓库状态(可多项,逗号隔开) 1:正常 2:注销 3:待审核 4:审核拒绝"
+// @Param    isincludeexchange query    bool   false "是返回交易所仓库"
+// @Success  200               {array}  models.GZWarehouseinfo
+// @Failure  500               {object} app.Response
+// @Router   /Guangzuan/QueryWarehouseInfo [get]
+// @Tags     广钻
 func QueryWarehouseInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.GZWarehouseinfo{}

+ 14 - 12
controllers/guangzuan/wrposition.go

@@ -8,19 +8,21 @@ import (
 )
 
 // QueryMyWRPosition
-// @Summary 查询我的库存
-// @Produce json
+// @Summary  查询我的库存
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param wruserid query int true "登录用户ID"
-// @Param zsallproperties query string false "商品(查询字段-模糊查询)"
-// @Param zscategory query int false "钻石分类枚举ID"
-// @Param warehouseid query int false "仓库ID"
-// @Success 200 {array} models.GZWarehouseinfo
-// @Failure 500 {object} app.Response
-// @Router /Guangzuan/QueryMyWRPosition [get]
-// @Tags 广钻
+// @Security LoginID
+// @Security Group
+// @Param    page            query    int    false "页码"
+// @Param    pagesize        query    int    false "每页条数"
+// @Param    wruserid        query    int    true  "登录用户ID"
+// @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
+// @Param    zscategory      query    int    false "钻石分类枚举ID"
+// @Param    warehouseid     query    int    false "仓库ID"
+// @Success  200             {array}  models.GZWarehouseinfo
+// @Failure  500             {object} app.Response
+// @Router   /Guangzuan/QueryMyWRPosition [get]
+// @Tags     广钻
 func QueryMyWRPosition(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.MyWRPosition{}

+ 219 - 219
controllers/hsby/hsby.go

@@ -22,19 +22,19 @@ type QueryHsbyTopGoodsesReq struct {
 }
 
 // QueryHsbyTopGoodses 查询热卖商品列表(二级市场挂牌点选)
-// @Summary 查询热卖商品列表(二级市场挂牌点选)
+// @Summary     查询热卖商品列表(二级市场挂牌点选)
 // @Description 说明:查询结果已按Hotindex(景点热度)从大到小排序
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param marketIDs query string true "市场ID列表,格式:1,2,3"
-// @Param descProvinceID query int false "目的地(省)ID"
-// @Param descCityID query int false "目的地(市)ID"
-// @Success 200 {object} models.HsbyTopGoods
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyTopGoodses [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       page           query    int    false "页码"
+// @Param       pagesize       query    int    false "每页条数"
+// @Param       marketIDs      query    string true  "市场ID列表,格式:1,2,3"
+// @Param       descProvinceID query    int    false "目的地(省)ID"
+// @Param       descCityID     query    int    false "目的地(市)ID"
+// @Success     200            {object} models.HsbyTopGoods
+// @Failure     500            {object} app.Response
+// @Router      /HSBY/QueryHsbyTopGoodses [get]
+// @Tags        定制【海商报业】
 func QueryHsbyTopGoodses(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -99,16 +99,16 @@ type QueryHsbyListingGoodsDetailReq struct {
 }
 
 // QueryHsbyListingGoodsDetail 查询二级市场(挂牌点选)商品信息详情
-// @Summary 查询二级市场(挂牌点选)商品信息详情
+// @Summary     查询二级市场(挂牌点选)商品信息详情
 // @Description 说明:“我的商品”详情中,二级(挂牌点选)和三级(商城)的商品详情都使用此接口
-// @Produce json
-// @Security ApiKeyAuth
-// @Param goodsID query int true "商品ID"
-// @Param accountID query int false "资金账户,主要用于获取交易规则。不传则获取通用规则。"
-// @Success 200 {object} models.HsbyListingGoodsDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyListingGoodsDetail [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       goodsID   query    int true  "商品ID"
+// @Param       accountID query    int false "资金账户,主要用于获取交易规则。不传则获取通用规则。"
+// @Success     200       {object} models.HsbyListingGoodsDetail
+// @Failure     500       {object} app.Response
+// @Router      /HSBY/QueryHsbyListingGoodsDetail [get]
+// @Tags        定制【海商报业】
 func QueryHsbyListingGoodsDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -172,19 +172,19 @@ type QueryHsbyGoodsOrderDetailsReq struct {
 }
 
 // QueryHsbyGoodsOrderDetails 查询二级市场(挂牌点选)商品对应的挂牌委托单信息
-// @Summary 查询二级市场(挂牌点选)商品对应的挂牌委托单信息
+// @Summary     查询二级市场(挂牌点选)商品对应的挂牌委托单信息
 // @Description 说明:查询结果已按委托价格和委托时间排序
-// @Produce json
-// @Security ApiKeyAuth
-// @Param goodsID query int true "商品ID"
-// @Param accountIDs query string false "摘牌方资金账户列表,格式:1,2,3。主要用于过滤自己的挂牌单"
-// @Param buyOrSell query int false "挂牌委托单方向(对手单方向),0:买 1:卖"
-// @Param price query number false " 参考价格。对手单买方向委托单则价格大于等于(站在摘牌人的角度,摘牌方面是卖,我的闲置下单);对手单卖方向委托单则价格小于等于(站在摘牌人的角度,摘牌方面是买,热门商品下单)"
-// @Param speed query int false "档位,不传则默认为3档"
-// @Success 200 {object} models.HsbyGoodsOrderDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyGoodsOrderDetails [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       goodsID    query    int    true  "商品ID"
+// @Param       accountIDs query    string false "摘牌方资金账户列表,格式:1,2,3。主要用于过滤自己的挂牌单"
+// @Param       buyOrSell  query    int    false "挂牌委托单方向(对手单方向),0:买 1:卖"
+// @Param       price      query    number false " 参考价格。对手单买方向委托单则价格大于等于(站在摘牌人的角度,摘牌方面是卖,我的闲置下单);对手单卖方向委托单则价格小于等于(站在摘牌人的角度,摘牌方面是买,热门商品下单)"
+// @Param       speed      query    int    false "档位,不传则默认为3档"
+// @Success     200        {object} models.HsbyGoodsOrderDetail
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryHsbyGoodsOrderDetails [get]
+// @Tags        定制【海商报业】
 func QueryHsbyGoodsOrderDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -252,15 +252,15 @@ type QueryHsbyMyBuyOrderDetailsReq struct {
 }
 
 // QueryHsbyMyBuyOrderDetails 查询“我的订单”信息
-// @Summary 查询“我的订单”信息
+// @Summary     查询“我的订单”信息
 // @Description 说明: myBuyStatus: 1,2 - 待成交;3 - 已提交;4 - 已撤消;5 - 委托失败
-// @Produce json
-// @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Success 200 {object} models.HybsMyBuyOrderDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyMyBuyOrderDetails [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       accountIDs query    string true "资金账户列表,格式:1,2,3"
+// @Success     200        {object} models.HybsMyBuyOrderDetail
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryHsbyMyBuyOrderDetails [get]
+// @Tags        定制【海商报业】
 func QueryHsbyMyBuyOrderDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -297,15 +297,15 @@ type QueryHsbyMyGoodsReq struct {
 }
 
 // QueryHsbyMyGoods 查询“我的商品”信息
-// @Summary 查询“我的商品”信息
+// @Summary     查询“我的商品”信息
 // @Description 说明: 挂牌点选(tradeMode = 16)价格取last; 商城(tradeMode = 70)价格取goodsprice
-// @Produce json
-// @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Success 200 {object} models.HsbyMyGoods
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyMyGoods [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       accountIDs query    string true "资金账户列表,格式:1,2,3"
+// @Success     200        {object} models.HsbyMyGoods
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryHsbyMyGoods [get]
+// @Tags        定制【海商报业】
 func QueryHsbyMyGoods(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -340,19 +340,19 @@ type QueryHsbyPreGoodsesReq struct {
 }
 
 // QueryHsbyPreGoodses 查询新品上市商品列表(一级市场预售)
-// @Summary 查询新品上市商品列表(一级市场预售)
+// @Summary     查询新品上市商品列表(一级市场预售)
 // @Description 说明:结果已先显示已开始商品(按结束时间顺序排),再显示未开始商品(按开始时间顺序排)
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param marketIDs query string true "市场ID列表,格式:1,2,3"
-// @Param descProvinceID query int false "目的地(省)ID"
-// @Param descCityID query int false "目的地(市)ID"
-// @Success 200 {object} models.HsbyPreGoods
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyPreGoodses [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       page           query    int    false "页码"
+// @Param       pagesize       query    int    false "每页条数"
+// @Param       marketIDs      query    string true  "市场ID列表,格式:1,2,3"
+// @Param       descProvinceID query    int    false "目的地(省)ID"
+// @Param       descCityID     query    int    false "目的地(市)ID"
+// @Success     200            {object} models.HsbyPreGoods
+// @Failure     500            {object} app.Response
+// @Router      /HSBY/QueryHsbyPreGoodses [get]
+// @Tags        定制【海商报业】
 func QueryHsbyPreGoodses(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -428,15 +428,15 @@ type QueryHsbyPreGoodsDetailReq struct {
 }
 
 // QueryHsbyPreGoodsDetail 查询一级市场(预售)商品信息详情
-// @Summary 查询一级市场(预售)商品信息详情
-// @Produce json
-// @Security ApiKeyAuth
-// @Param goodsID query int true "商品ID"
-// @Param accountID query int false "资金账户,主要用于获取预售商品购买上限"
-// @Success 200 {object} models.HsbyPreGoodsDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyPreGoodsDetail [get]
-// @Tags 定制【海商报业】
+// @Summary  查询一级市场(预售)商品信息详情
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    goodsID   query    int true  "商品ID"
+// @Param    accountID query    int false "资金账户,主要用于获取预售商品购买上限"
+// @Success  200       {object} models.HsbyPreGoodsDetail
+// @Failure  500       {object} app.Response
+// @Router   /HSBY/QueryHsbyPreGoodsDetail [get]
+// @Tags     定制【海商报业】
 func QueryHsbyPreGoodsDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -470,18 +470,18 @@ type QueryHsbySellMyDetailReq struct {
 }
 
 // QueryHsbySellMyDetails 查询"我的闲置"单据信息
-// @Summary 查询"我的闲置"单据信息
+// @Summary     查询"我的闲置"单据信息
 // @Description 说明:发布中 - 二级市场卖挂,3:委托成功、7:部分成交; 已完成 - 二级市场成交单,包括历史数据。查询结果已按时间从近到远排序
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Param orderType query int false "单据类型:0 - 发布中(默认), 1 - 已完成"
-// @Success 200 {object} models.HsbySellMyDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbySellMyDetails [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       page       query    int    false "页码"
+// @Param       pagesize   query    int    false "每页条数"
+// @Param       accountIDs query    string true  "资金账户列表,格式:1,2,3"
+// @Param       orderType  query    int    false "单据类型:0 - 发布中(默认), 1 - 已完成"
+// @Success     200        {object} models.HsbySellMyDetail
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryHsbySellMyDetails [get]
+// @Tags        定制【海商报业】
 func QueryHsbySellMyDetails(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -561,15 +561,15 @@ type QueryHsbyMyPackagesReq struct {
 }
 
 // QueryHsbyMyPackages 查询我的包裹信息
-// @Summary 查询我的包裹信息
-// @Produce json
-// @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Param takeOrderStatus query int false "提货状态 - 1:待发货 2:已发货 3:已收货"
-// @Success 200 {object} models.HsbyMyPackage
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyMyPackages [get]
-// @Tags 定制【海商报业】
+// @Summary  查询我的包裹信息
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    accountIDs      query    string true  "资金账户列表,格式:1,2,3"
+// @Param    takeOrderStatus query    int    false "提货状态 - 1:待发货 2:已发货 3:已收货"
+// @Success  200             {object} models.HsbyMyPackage
+// @Failure  500             {object} app.Response
+// @Router   /HSBY/QueryHsbyMyPackages [get]
+// @Tags     定制【海商报业】
 func QueryHsbyMyPackages(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -602,15 +602,15 @@ type SetHsbyMyPackagesStatusReq struct {
 }
 
 // SetHsbyMyPackagesStatus 设置我的包裹已收货状态
-// @Summary 设置我的包裹已收货状态
-// @Produce json
-// @Security ApiKeyAuth
-// @Param takeOrderID query string true "提货单号"
-// @Param accountID query int true "资金账号"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /HSBY/SetHsbyMyPackagesStatus [post]
-// @Tags 定制【海商报业】
+// @Summary  设置我的包裹已收货状态
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    takeOrderID query    string true "提货单号"
+// @Param    accountID   query    int    true "资金账号"
+// @Success  200         {object} app.Response
+// @Failure  500         {object} app.Response
+// @Router   /HSBY/SetHsbyMyPackagesStatus [post]
+// @Tags     定制【海商报业】
 func SetHsbyMyPackagesStatus(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -647,15 +647,15 @@ type QueryProvincesAndCitiesRsp struct {
 }
 
 // QueryProvincesAndCities 查询省市信息(不包括区)
-// @Summary 查询省市信息(不包括区)
+// @Summary     查询省市信息(不包括区)
 // @Description 查询结果只包括二级市场商品已关连的省市信息。
-// @Produce json
-// @Security ApiKeyAuth
-// @Param provinceID query int false "省ID"
-// @Success 200 {object} QueryProvincesAndCitiesRsp
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryProvincesAndCities [get]
-// @Tags 定制【海商报业】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       provinceID query    int false "省ID"
+// @Success     200        {object} QueryProvincesAndCitiesRsp
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryProvincesAndCities [get]
+// @Tags        定制【海商报业】
 func QueryProvincesAndCities(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -711,16 +711,16 @@ type QueryHsbyBuyMyTradeDetailReq struct {
 }
 
 // QueryHsbyBuyMyTradeDetail 查询"我的订单 - 已完成"单据信息
-// @Summary 查询"我的订单 - 已完成"单据信息
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Success 200 {object} models.HsbyBuyMyTradeDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyBuyMyTradeDetail [get]
-// @Tags 定制【海商报业】
+// @Summary  查询"我的订单 - 已完成"单据信息
+// @Produce  json
+// @Security    ApiKeyAuth
+// @Param    page       query    int    false "页码"
+// @Param    pagesize   query    int    false "每页条数"
+// @Param    accountIDs query    string true  "资金账户列表,格式:1,2,3"
+// @Success  200        {object} models.HsbyBuyMyTradeDetail
+// @Failure  500        {object} app.Response
+// @Router   /HSBY/QueryHsbyBuyMyTradeDetail [get]
+// @Tags     定制【海商报业】
 func QueryHsbyBuyMyTradeDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -796,15 +796,15 @@ type GetHsbyMyCountRsp struct {
 }
 
 // GetHsbyMyCount 获取我的订单与包裹数量
-// @Summary 获取我的订单与包裹数量
+// @Summary     获取我的订单与包裹数量
 // @Description 说明: 不包括已完成的数量。
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Success 200 {object} GetHsbyMyCountRsp
-// @Failure 500 {object} app.Response
-// @Router /HSBY/GetHsbyMyCount [get]
-// @Tags 定制【海商报业】
+// @Param       accountIDs query    string true "资金账户列表,格式:1,2,3"
+// @Success     200        {object} GetHsbyMyCountRsp
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/GetHsbyMyCount [get]
+// @Tags        定制【海商报业】
 func GetHsbyMyCount(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -893,18 +893,18 @@ type QueryMyPayOrdersReq struct {
 }
 
 // QueryMyPayOrders 获取我的订单中待付款信息
-// @Summary 获取我的订单中待付款信息
-// @Produce json
+// @Summary  获取我的订单中待付款信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Param buyOrderID query int false "买方委托单号"
-// @Param sellOrderID query int false "卖方委托单号"
-// @Success 200 {object} models.HsbyBuyMyPayOrder
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryMyPayOrders [get]
-// @Tags 定制【海商报业】
+// @Param    page        query    int    false "页码"
+// @Param    pagesize    query    int    false "每页条数"
+// @Param    accountIDs  query    string true  "资金账户列表,格式:1,2,3"
+// @Param    buyOrderID  query    int    false "买方委托单号"
+// @Param    sellOrderID query    int    false "卖方委托单号"
+// @Success  200         {object} models.HsbyBuyMyPayOrder
+// @Failure  500         {object} app.Response
+// @Router   /HSBY/QueryMyPayOrders [get]
+// @Tags     定制【海商报业】
 func QueryMyPayOrders(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -969,16 +969,16 @@ type QueryMyCollectionOrdersReq struct {
 }
 
 // QueryMyCollectionOrders 我的闲置中收款信息查询
-// @Summary 我的闲置中收款信息查询
-// @Produce json
+// @Summary  我的闲置中收款信息查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param accountIDs query string true "资金账户,格式:1,2,3"
-// @Success 200 {object} models.HsbySellCollectionOrder
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryMyCollectionOrders [get]
-// @Tags 定制【海商报业】
+// @Param    page       query    int    false "页码"
+// @Param    pagesize   query    int    false "每页条数"
+// @Param    accountIDs query    string true  "资金账户,格式:1,2,3"
+// @Success  200        {object} models.HsbySellCollectionOrder
+// @Failure  500        {object} app.Response
+// @Router   /HSBY/QueryMyCollectionOrders [get]
+// @Tags     定制【海商报业】
 func QueryMyCollectionOrders(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1037,13 +1037,13 @@ func QueryMyCollectionOrders(c *gin.Context) {
 }
 
 // QueryHsbyMarkets 查询海商报业相关市场信息
-// @Summary 查询海商报业相关市场信息
-// @Produce json
+// @Summary  查询海商报业相关市场信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {object} models.HsbyMarketInfo
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyMarkets [get]
-// @Tags 定制【海商报业】
+// @Success  200 {object} models.HsbyMarketInfo
+// @Failure  500 {object} app.Response
+// @Router   /HSBY/QueryHsbyMarkets [get]
+// @Tags     定制【海商报业】
 func QueryHsbyMarkets(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1070,19 +1070,19 @@ type QueryHsbyVisitorMarketGoodsesReq struct {
 }
 
 // QueryHsbyVisitorMarketGoodses 查询游客特卖商品列表(三级商城)
-// @Summary 查询游客特卖商品列表(三级商城)
+// @Summary     查询游客特卖商品列表(三级商城)
 // @Description 说明:使用于未登录状态查询商城商品列表,登录后请使用QueryHsbyMarketGoodses接口进行查询。
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param marketIDs query string true "市场ID列表,格式:1,2,3"
-// @Param categoryID query int false "类别ID"
-// @Param goodsIDs query string false "商品ID列表,格式:1,2,3。主要用于商品搜索。"
-// @Success 200 {object} models.HsbyMarketGoods
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyVisitorMarketGoodses [get]
-// @Tags 定制【海商报业】
+// @Param       page       query    int    false "页码"
+// @Param       pagesize   query    int    false "每页条数"
+// @Param       marketIDs  query    string true  "市场ID列表,格式:1,2,3"
+// @Param       categoryID query    int    false "类别ID"
+// @Param       goodsIDs   query    string false "商品ID列表,格式:1,2,3。主要用于商品搜索。"
+// @Success     200        {object} models.HsbyMarketGoods
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryHsbyVisitorMarketGoodses [get]
+// @Tags        定制【海商报业】
 func QueryHsbyVisitorMarketGoodses(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1151,20 +1151,20 @@ type QueryHsbyMarketGoodsesReq struct {
 }
 
 // QueryHsbyMarketGoodses 查询特卖商品列表(三级商城)
-// @Summary 查询特卖商品列表(三级商城)
-// @Produce json
+// @Summary  查询特卖商品列表(三级商城)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param marketIDs query string true "市场ID列表,格式:1,2,3"
-// @Param accountID query int true "资金账户,用于判断商品是否有可用的优惠卷;同时只显示此账户所属机构下的商城委托单。"
-// @Param categoryID query int false "类别ID"
-// @Param goodsIDs query string false "商品ID列表,格式:1,2,3。主要用于商品搜索。"
-// @Param couponTypeID query int false "优惠券类型ID,主要用于显示优惠卷对应的商品列表。"
-// @Success 200 {object} models.HsbyMarketGoods
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyMarketGoodses [get]
-// @Tags 定制【海商报业】
+// @Param    page         query    int    false "页码"
+// @Param    pagesize     query    int    false "每页条数"
+// @Param    marketIDs    query    string true  "市场ID列表,格式:1,2,3"
+// @Param    accountID    query    int    true  "资金账户,用于判断商品是否有可用的优惠卷;同时只显示此账户所属机构下的商城委托单。"
+// @Param    categoryID   query    int    false "类别ID"
+// @Param    goodsIDs     query    string false "商品ID列表,格式:1,2,3。主要用于商品搜索。"
+// @Param    couponTypeID query    int    false "优惠券类型ID,主要用于显示优惠卷对应的商品列表。"
+// @Success  200          {object} models.HsbyMarketGoods
+// @Failure  500          {object} app.Response
+// @Router   /HSBY/QueryHsbyMarketGoodses [get]
+// @Tags     定制【海商报业】
 func QueryHsbyMarketGoodses(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1228,15 +1228,15 @@ type QueryHsbyVisitorMarketGoodsDetailReq struct {
 }
 
 // QueryHsbyVisitorMarketGoodsDetail 查询游客三级市场(商城)商品信息详情
-// @Summary 查询游客三级市场(商城)商品信息详情
+// @Summary     查询游客三级市场(商城)商品信息详情
 // @Description 说明:使用于未登录状态查询商城商品详情,登录后请使用QueryHsbyMarketGoodsDetail接口进行查询。
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param goodsID query int true "商品ID"
-// @Success 200 {object} models.HsbyMarketGoodsDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyVisitorMarketGoodsDetail [get]
-// @Tags 定制【海商报业】
+// @Param       goodsID query    int true "商品ID"
+// @Success     200     {object} models.HsbyMarketGoodsDetail
+// @Failure     500     {object} app.Response
+// @Router      /HSBY/QueryHsbyVisitorMarketGoodsDetail [get]
+// @Tags        定制【海商报业】
 func QueryHsbyVisitorMarketGoodsDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1269,15 +1269,15 @@ type QueryHsbyMarketGoodsDetailReq struct {
 }
 
 // QueryHsbyMarketGoodsDetail 查询三级市场(商城)商品信息详情
-// @Summary 查询三级市场(商城)商品信息详情
-// @Produce json
+// @Summary  查询三级市场(商城)商品信息详情
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param orderID query int true "委托单号"
-// @Param accountID query int false "资金账户,主要用于判断商品最大开仓手数;如未登录可不传。"
-// @Success 200 {object} models.HsbyMarketGoodsDetail
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryHsbyMarketGoodsDetail [get]
-// @Tags 定制【海商报业】
+// @Param    orderID   query    int true  "委托单号"
+// @Param    accountID query    int false "资金账户,主要用于判断商品最大开仓手数;如未登录可不传。"
+// @Success  200       {object} models.HsbyMarketGoodsDetail
+// @Failure  500       {object} app.Response
+// @Router   /HSBY/QueryHsbyMarketGoodsDetail [get]
+// @Tags     定制【海商报业】
 func QueryHsbyMarketGoodsDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1339,16 +1339,16 @@ type QueryMyCouponsReq struct {
 }
 
 // QueryMyCoupons 我的优惠卷查询
-// @Summary 我的优惠卷查询
-// @Produce json
+// @Summary  我的优惠卷查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Param goodsID query int false "商品ID, 一般与sellUserID配套传入"
-// @Param sellUserID query int false "卖方UserID"
-// @Success 200 {object} models.MyCoupon
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryMyCoupons [get]
-// @Tags 定制【海商报业】
+// @Param    accountIDs query    string true  "资金账户列表,格式:1,2,3"
+// @Param    goodsID    query    int    false "商品ID, 一般与sellUserID配套传入"
+// @Param    sellUserID query    int    false "卖方UserID"
+// @Success  200        {object} models.MyCoupon
+// @Failure  500        {object} app.Response
+// @Router   /HSBY/QueryMyCoupons [get]
+// @Tags     定制【海商报业】
 func QueryMyCoupons(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1381,16 +1381,16 @@ type QueryMyCouponHoldsReq struct {
 }
 
 // QueryMyCouponHolds 我的优惠卷持仓查询
-// @Summary 我的优惠卷持仓查询
+// @Summary     我的优惠卷持仓查询
 // @Description 说明:当holdStatus传入4(已过期)后,会从历史表中查询已过期的优惠卷数据。
-// @Produce json
+// @Produce     json
 // @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Param holdStatus query string false "持仓状态 - 1:未生效 2:已生效 3:已使用 4:已过期,格式:1,2,3"
-// @Success 200 {object} models.MyCouponHold
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryMyCouponHolds [get]
-// @Tags 定制【海商报业】
+// @Param       accountIDs query    string true  "资金账户列表,格式:1,2,3"
+// @Param       holdStatus query    string false "持仓状态 - 1:未生效 2:已生效 3:已使用 4:已过期,格式:1,2,3"
+// @Success     200        {object} models.MyCouponHold
+// @Failure     500        {object} app.Response
+// @Router      /HSBY/QueryMyCouponHolds [get]
+// @Tags        定制【海商报业】
 func QueryMyCouponHolds(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1422,14 +1422,14 @@ type QueryMyUsedCouponReq struct {
 }
 
 // QueryMyUsedCoupon 已使用优惠卷查询
-// @Summary 已使用优惠卷查询
-// @Produce json
+// @Summary  已使用优惠卷查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountIDs query string true "资金账户列表,格式:1,2,3"
-// @Success 200 {object} models.MyUsedCoupon
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryMyUsedCoupon [get]
-// @Tags 定制【海商报业】
+// @Param    accountIDs query    string true "资金账户列表,格式:1,2,3"
+// @Success  200        {object} models.MyUsedCoupon
+// @Failure  500        {object} app.Response
+// @Router   /HSBY/QueryMyUsedCoupon [get]
+// @Tags     定制【海商报业】
 func QueryMyUsedCoupon(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -1456,13 +1456,13 @@ func QueryMyUsedCoupon(c *gin.Context) {
 }
 
 // QueryClientFixedADConfigs 获取终端固定广告配置
-// @Summary 获取终端固定广告配置
-// @Produce json
+// @Summary  获取终端固定广告配置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {object} models.Clientfixedadconfig
-// @Failure 500 {object} app.Response
-// @Router /HSBY/QueryClientFixedADConfigs [get]
-// @Tags 定制【海商报业】
+// @Success  200 {object} models.Clientfixedadconfig
+// @Failure  500 {object} app.Response
+// @Router   /HSBY/QueryClientFixedADConfigs [get]
+// @Tags     定制【海商报业】
 func QueryClientFixedADConfigs(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 28 - 28
controllers/market/market.go

@@ -18,14 +18,14 @@ type QueryMarketRunReq struct {
 }
 
 // QueryMarketRun 查询市场运行信息
-// @Summary 查询市场运行信息
-// @Produce json
+// @Summary  查询市场运行信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param marketID query int false "市场ID,不传返回所有"
-// @Success 200 {object} models.Marketrun
-// @Failure 500 {object} app.Response
-// @Router /Market/QueryMarketRun [get]
-// @Tags 通用市场
+// @Param    marketID query    int false "市场ID,不传返回所有"
+// @Success  200      {object} models.Marketrun
+// @Failure  500      {object} app.Response
+// @Router   /Market/QueryMarketRun [get]
+// @Tags     通用市场
 func QueryMarketRun(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -56,14 +56,14 @@ type QueryMarketsByLoginIDReq struct {
 }
 
 // QueryMarketsByLoginID 获取登录账号有权限的市场信息
-// @Summary 获取登录账号有权限的市场信息
-// @Produce json
+// @Summary  获取登录账号有权限的市场信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Success 200 {object} models.Market
-// @Failure 500 {object} app.Response
-// @Router /Market/QueryMarketsByLoginID [get]
-// @Tags 通用市场
+// @Param    loginID query    int true "登录账号"
+// @Success  200     {object} models.Market
+// @Failure  500     {object} app.Response
+// @Router   /Market/QueryMarketsByLoginID [get]
+// @Tags     通用市场
 func QueryMarketsByLoginID(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -95,15 +95,15 @@ type QueryGoodsesByLoginIDReq struct {
 }
 
 // QueryGoodsesByLoginID 获取登录账号有权限的商品信息
-// @Summary 获取登录账号有权限的商品信息
-// @Produce json
+// @Summary  获取登录账号有权限的商品信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Param marketIDs query string false "市场ID列表,格式:1,2,3"
-// @Success 200 {object} models.Goods
-// @Failure 500 {object} app.Response
-// @Router /Market/QueryGoodsesByLoginID [get]
-// @Tags 通用市场
+// @Param    loginID   query    int    true  "登录账号"
+// @Param    marketIDs query    string false "市场ID列表,格式:1,2,3"
+// @Success  200       {object} models.Goods
+// @Failure  500       {object} app.Response
+// @Router   /Market/QueryGoodsesByLoginID [get]
+// @Tags     通用市场
 func QueryGoodsesByLoginID(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -129,13 +129,13 @@ func QueryGoodsesByLoginID(c *gin.Context) {
 }
 
 // GetAllExExchanges 获取所有外部交易所信息
-// @Summary 获取所有外部交易所信息
-// @Produce json
+// @Summary  获取所有外部交易所信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {object} models.Goods
-// @Failure 500 {object} app.Response
-// @Router /Market/GetAllExExchanges [get]
-// @Tags 通用市场
+// @Success  200 {object} models.Goods
+// @Failure  500 {object} app.Response
+// @Router   /Market/GetAllExExchanges [get]
+// @Tags     通用市场
 func GetAllExExchanges(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 58 - 58
controllers/order/order.go

@@ -85,15 +85,15 @@ type QueryTradePositionRsp struct {
 }
 
 // QueryTradePosition 持仓汇总查询(合约市场)
-// @Summary 持仓汇总查询(合约市场)
-// @Produce json
+// @Summary  持仓汇总查询(合约市场)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param tradeMode query string false "交易模式 - 格式:1,2,3"
-// @Success 200 {object} QueryTradePositionRsp
-// @Failure 500 {object} app.Response
-// @Router /Order/QueryTradePosition [get]
-// @Tags 通用单据
+// @Param    accountID query    string true  "资金账户 - 格式:1,2,3"
+// @Param    tradeMode query    string false "交易模式 - 格式:1,2,3"
+// @Success  200       {object} QueryTradePositionRsp
+// @Failure  500       {object} app.Response
+// @Router   /Order/QueryTradePosition [get]
+// @Tags     通用单据
 // 参考通用查询:SearchTradePositionDetail
 func QueryTradePosition(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -357,17 +357,17 @@ func (r *QueryTradeOrderDetailRsp) calc() {
 }
 
 // QueryTradeOrderDetail 委托单查询请求(合约市场)
-// @Summary 委托单查询请求(合约市场)
-// @Produce json
+// @Summary  委托单查询请求(合约市场)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param tradeMode query string false "交易模式 - 格式:1,2,3"
-// @Param orderStatus query string false "委托状态 - 格式:1,2,3"
-// @Param orderID query int false "委托单号"
-// @Success 200 {object} QueryTradeOrderDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Order/QueryTradeOrderDetail [get]
-// @Tags 通用单据
+// @Param    accountID   query    string true  "资金账户 - 格式:1,2,3"
+// @Param    tradeMode   query    string false "交易模式 - 格式:1,2,3"
+// @Param    orderStatus query    string false "委托状态 - 格式:1,2,3"
+// @Param    orderID     query    int    false "委托单号"
+// @Success  200         {object} QueryTradeOrderDetailRsp
+// @Failure  500         {object} app.Response
+// @Router   /Order/QueryTradeOrderDetail [get]
+// @Tags     通用单据
 // 参考通用查询:SearchTradeOrderDetail
 func QueryTradeOrderDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -454,19 +454,19 @@ func (r *QueryHisTradeOrderDetailRsp) calc() {
 }
 
 // QueryHisTradeOrderDetail 历史委托单查询请求(合约市场)
-// @Summary 历史委托单查询请求(合约市场)
-// @Produce json
+// @Summary  历史委托单查询请求(合约市场)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param tradeMode query string false "交易模式 - 格式:1,2,3"
-// @Param orderStatus query string false "委托状态 - 格式:1,2,3"
-// @Param orderID query int false "委托单号"
-// @Param startDate query string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
-// @Param endDate query string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
-// @Success 200 {object} QueryHisTradeOrderDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Order/QueryHisTradeOrderDetail [get]
-// @Tags 通用单据
+// @Param    accountID   query    string true  "资金账户 - 格式:1,2,3"
+// @Param    tradeMode   query    string false "交易模式 - 格式:1,2,3"
+// @Param    orderStatus query    string false "委托状态 - 格式:1,2,3"
+// @Param    orderID     query    int    false "委托单号"
+// @Param    startDate   query    string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
+// @Param    endDate     query    string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
+// @Success  200         {object} QueryHisTradeOrderDetailRsp
+// @Failure  500         {object} app.Response
+// @Router   /Order/QueryHisTradeOrderDetail [get]
+// @Tags     通用单据
 // 参考通用查询:Client_QueryHis_trade_orderdetail
 func QueryHisTradeOrderDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -561,20 +561,20 @@ func (r *QueryTradeDetailRsp) calc() {
 }
 
 // QueryTradeDetail 成交单查询(合约市场)
-// @Summary 成交单查询(合约市场)
-// @Produce json
+// @Summary  成交单查询(合约市场)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param tradeID query int false "成交单号"
-// @Param orderID query int false "委托单号"
-// @Param tradeMode query string false "交易模式 - 格式:1,2,3"
-// @Param buildType query int false "委托单据类型"
-// @Param tradeType query string false "成交类别 - 格式:1,2,3"
-// @Param goodsID query int false "商品ID"
-// @Success 200 {object} QueryTradeDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Order/QueryTradeDetail [get]
-// @Tags 通用单据
+// @Param    accountID query    string true  "资金账户 - 格式:1,2,3"
+// @Param    tradeID   query    int    false "成交单号"
+// @Param    orderID   query    int    false "委托单号"
+// @Param    tradeMode query    string false "交易模式 - 格式:1,2,3"
+// @Param    buildType query    int    false "委托单据类型"
+// @Param    tradeType query    string false "成交类别 - 格式:1,2,3"
+// @Param    goodsID   query    int    false "商品ID"
+// @Success  200       {object} QueryTradeDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Order/QueryTradeDetail [get]
+// @Tags     通用单据
 // 参考通用查询:SearchAllTransactionDetailOrder
 func QueryTradeDetail(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -678,22 +678,22 @@ func (r *QueryHisTradeDetailRsp) calc() {
 }
 
 // QueryHisTradeDetail 历史成交单查询(合约市场)
-// @Summary 历史成交单查询(合约市场)
-// @Produce json
+// @Summary  历史成交单查询(合约市场)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param tradeID query int false "成交单号"
-// @Param orderID query int false "委托单号"
-// @Param goodsID query int false "商品ID"
-// @Param tradeMode query string false "交易模式 - 格式:1,2,3"
-// @Param buildType query int false "委托单据类型"
-// @Param tradeType query string false "成交类别 - 格式:1,2,3"
-// @Param startDate query string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
-// @Param endDate query string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
-// @Success 200 {object} QueryHisTradeDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /Order/QueryHisTradeDetail [get]
-// @Tags 通用单据
+// @Param    accountID query    string true  "资金账户 - 格式:1,2,3"
+// @Param    tradeID   query    int    false "成交单号"
+// @Param    orderID   query    int    false "委托单号"
+// @Param    goodsID   query    int    false "商品ID"
+// @Param    tradeMode query    string false "交易模式 - 格式:1,2,3"
+// @Param    buildType query    int    false "委托单据类型"
+// @Param    tradeType query    string false "成交类别 - 格式:1,2,3"
+// @Param    startDate query    string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
+// @Param    endDate   query    string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
+// @Success  200       {object} QueryHisTradeDetailRsp
+// @Failure  500       {object} app.Response
+// @Router   /Order/QueryHisTradeDetail [get]
+// @Tags     通用单据
 // 参考通用查询:Client_QueryHis_trade_transactiondetail
 func QueryHisTradeDetail(c *gin.Context) {
 	appG := app.Gin{C: c}

+ 215 - 215
controllers/qhj/qryQhj.go

@@ -15,15 +15,15 @@ import (
 )
 
 // QueryContract
-// @Summary 查询融资明细(合同)
-// @Produce json
+// @Summary  查询融资明细(合同)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户ID"
-// @Param scfcontractid query int false "scf合同id"
-// @Success 200 {array} models.QhjContract
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryContract [get]
-// @Tags 大连千海金
+// @Param    userid        query    int false "用户ID"
+// @Param    scfcontractid query    int false "scf合同id"
+// @Success  200           {array}  models.QhjContract
+// @Failure  500           {object} app.Response
+// @Router   /Qhj/QueryContract [get]
+// @Tags     大连千海金
 func QueryContract(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -36,15 +36,15 @@ func QueryContract(c *gin.Context) {
 }
 
 // QueryContractLog
-// @Summary 查询融资明细流水(融资明细详情页中的流水)
-// @Produce json
+// @Summary  查询融资明细流水(融资明细详情页中的流水)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param scfcontractid query int true "scf合同id"
-// @Param amounttype query string false "资金类型(逗号隔开) - 1:首付款 2:尾款 3:利息 4:追加款"
-// @Success 200 {array} models.QhjContractLog
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryContractLog [get]
-// @Tags 大连千海金
+// @Param    scfcontractid query    int    true  "scf合同id"
+// @Param    amounttype    query    string false "资金类型(逗号隔开) - 1:首付款 2:尾款 3:利息 4:追加款"
+// @Success  200           {array}  models.QhjContractLog
+// @Failure  500           {object} app.Response
+// @Router   /Qhj/QueryContractLog [get]
+// @Tags     大连千海金
 func QueryContractLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -57,17 +57,17 @@ func QueryContractLog(c *gin.Context) {
 }
 
 // QueryRStrategy
-// @Summary 查询定投设置(我的定投/历史定投[状态=已终止])
-// @Produce json
+// @Summary  查询定投设置(我的定投/历史定投[状态=已终止])
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户ID"
-// @Param goodsid query int false "商品id"
-// @Param status query string false "策略状态(可多选,逗号隔开) - 1:正常 2:暂停 3:终止"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Success 200 {array} models.QhjRStrategy
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryRStrategy [get]
-// @Tags 大连千海金
+// @Param    userid     query    int    false "用户ID"
+// @Param    goodsid    query    int    false "商品id"
+// @Param    status     query    string false "策略状态(可多选,逗号隔开) - 1:正常 2:暂停 3:终止"
+// @Param    filtername query    string false "名称(模糊搜索账户)"
+// @Success  200        {array}  models.QhjRStrategy
+// @Failure  500        {object} app.Response
+// @Router   /Qhj/QueryRStrategy [get]
+// @Tags     大连千海金
 func QueryRStrategy(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -83,19 +83,19 @@ func QueryRStrategy(c *gin.Context) {
 }
 
 // QueryRSTriggerLog
-// @Summary 查询定投记录(定投管理/详情/定投记录)
-// @Produce json
+// @Summary  查询定投记录(定投管理/详情/定投记录)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户ID"
-// @Param regularlystrategyid query int false "定投策略id"
-// @Param goodsid query int false "商品id"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Success 200 {array} models.QhjRSTriggerLog
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryRSTriggerLog [get]
-// @Tags 大连千海金
+// @Param    userid              query    int    false "用户ID"
+// @Param    regularlystrategyid query    int    false "定投策略id"
+// @Param    goodsid             query    int    false "商品id"
+// @Param    begindate           query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate             query    string false "结束交易日(yyyymmdd)"
+// @Param    filtername          query    string false "名称(模糊搜索账户)"
+// @Success  200                 {array}  models.QhjRSTriggerLog
+// @Failure  500                 {object} app.Response
+// @Router   /Qhj/QueryRSTriggerLog [get]
+// @Tags     大连千海金
 func QueryRSTriggerLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -113,14 +113,14 @@ func QueryRSTriggerLog(c *gin.Context) {
 }
 
 // QueryUserReceiveInfo
-// @Summary 查询收货地址信息
-// @Produce json
+// @Summary  查询收货地址信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.UserReceiveInfo
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryUserReceiveInfo [get]
-// @Tags 大连千海金
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.UserReceiveInfo
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryUserReceiveInfo [get]
+// @Tags     大连千海金
 func QueryUserReceiveInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -132,14 +132,14 @@ func QueryUserReceiveInfo(c *gin.Context) {
 }
 
 // QueryUserCollectConfig
-// @Summary 查询提现账户设置
-// @Produce json
+// @Summary  查询提现账户设置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.UserCollectConfig
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryUserCollectConfig [get]
-// @Tags 大连千海金
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.UserCollectConfig
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryUserCollectConfig [get]
+// @Tags     大连千海金
 func QueryUserCollectConfig(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -151,15 +151,15 @@ func QueryUserCollectConfig(c *gin.Context) {
 }
 
 // QueryTradeGoodsPickup
-// @Summary 查询提货
-// @Produce json
+// @Summary  查询提货
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param takeorderstatus query int false "提货状态 1:备货中 2:待取货(自提) 3:已取货(自提) 4:待收货(邮寄) 5:已收货(邮寄) 6:自动收货(邮寄) 7:已拒绝 8:已撤销"
-// @Success 200 {array} models.QhjTradeGoodsPickup
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryTradeGoodsPickup [get]
-// @Tags 大连千海金
+// @Param    userid          query    int true  "用户ID"
+// @Param    takeorderstatus query    int false "提货状态 1:备货中 2:待取货(自提) 3:已取货(自提) 4:待收货(邮寄) 5:已收货(邮寄) 6:自动收货(邮寄) 7:已拒绝 8:已撤销"
+// @Success  200             {array}  models.QhjTradeGoodsPickup
+// @Failure  500             {object} app.Response
+// @Router   /Qhj/QueryTradeGoodsPickup [get]
+// @Tags     大连千海金
 func QueryTradeGoodsPickup(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -172,15 +172,15 @@ func QueryTradeGoodsPickup(c *gin.Context) {
 }
 
 // QueryPickGoods
-// @Summary 查询提货商品
-// @Produce json
+// @Summary  查询提货商品
+// @Produce  json
 // @Security ApiKeyAuth
-// @param goodsid query int true "交易商品id"
-// @Param status query string false "状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销"
-// @Success 200 {array} models.QhjPickGoods
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryPickGoods [get]
-// @Tags 大连千海金
+// @param    goodsid query    int    true  "交易商品id"
+// @Param    status  query    string false "状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销"
+// @Success  200     {array}  models.QhjPickGoods
+// @Failure  500     {object} app.Response
+// @Router   /Qhj/QueryPickGoods [get]
+// @Tags     大连千海金
 func QueryPickGoods(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -193,14 +193,14 @@ func QueryPickGoods(c *gin.Context) {
 }
 
 // QueryPickArea
-// @Summary 查询提货门店
-// @Produce json
+// @Summary  查询提货门店
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户ID"
-// @Success 200 {array} models.QhjPickArea
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryPickArea [get]
-// @Tags 大连千海金
+// @Param    userid query    int false "用户ID"
+// @Success  200    {array}  models.QhjPickArea
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryPickArea [get]
+// @Tags     大连千海金
 func QueryPickArea(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -212,14 +212,14 @@ func QueryPickArea(c *gin.Context) {
 }
 
 // QueryBankAccountSign
-// @Summary 查询签约银行信息(提现账户管理)
-// @Produce json
+// @Summary  查询签约银行信息(提现账户管理)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.QhjBankAccountSign
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryBankAccountSign [get]
-// @Tags 大连千海金
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.QhjBankAccountSign
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryBankAccountSign [get]
+// @Tags     大连千海金
 func QueryBankAccountSign(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -231,13 +231,13 @@ func QueryBankAccountSign(c *gin.Context) {
 }
 
 // QueryBankInfo
-// @Summary 查询开户行
-// @Produce json
+// @Summary  查询开户行
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {array} models.QhjBankInfo
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryBankInfo [get]
-// @Tags 大连千海金
+// @Success  200 {array}  models.QhjBankInfo
+// @Failure  500 {object} app.Response
+// @Router   /Qhj/QueryBankInfo [get]
+// @Tags     大连千海金
 func QueryBankInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjBankInfo{}
@@ -245,15 +245,15 @@ func QueryBankInfo(c *gin.Context) {
 }
 
 // QueryReckonPriceLog
-// @Summary 查询定投价(结算价)
-// @Produce json
+// @Summary  查询定投价(结算价)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsid query int false "商品ID"
-// @Param tradedate query string false "交易日 格式(yyyymmdd)"
-// @Success 200 {array} models.QhjReckonPriceLog
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryReckonPriceLog [get]
-// @Tags 大连千海金
+// @Param    goodsid   query    int    false "商品ID"
+// @Param    tradedate query    string false "交易日 格式(yyyymmdd)"
+// @Success  200       {array}  models.QhjReckonPriceLog
+// @Failure  500       {object} app.Response
+// @Router   /Qhj/QueryReckonPriceLog [get]
+// @Tags     大连千海金
 func QueryReckonPriceLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjReckonPriceLog{}
@@ -262,19 +262,19 @@ func QueryReckonPriceLog(c *gin.Context) {
 }
 
 // QueryCustomerInfo
-// @Summary 查询客户资料
-// @Produce json
+// @Summary  查询客户资料
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1:未提交(网上开户表) 2:待审核(网上开户表) 3:正常 4:停用"
-// @Param userinfotype query int false "客户类型 1-个人 2-企业"
-// @Param customername query string false "客户名称(模糊匹配)"
-// @Param nickname query string false "昵称(模糊匹配)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjCustomer
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryCustomerInfo [get]
-// @Tags 大连千海金
+// @Param    userid       query    int    true  "用户ID"
+// @Param    querytype    query    int    true  "查询类型 1:未提交(网上开户表) 2:待审核(网上开户表) 3:正常 4:停用"
+// @Param    userinfotype query    int    false "客户类型 1-个人 2-企业"
+// @Param    customername query    string false "客户名称(模糊匹配)"
+// @Param    nickname     query    string false "昵称(模糊匹配)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjCustomer
+// @Failure  500          {object} app.Response
+// @Router   /Qhj/QueryCustomerInfo [get]
+// @Tags     大连千海金
 func QueryCustomerInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -292,13 +292,13 @@ func QueryCustomerInfo(c *gin.Context) {
 }
 
 // QueryCusBankSignBank
-// @Summary 查询托管银行
-// @Produce json
+// @Summary  查询托管银行
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {array} models.QhjCusBankSignBankEx
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryCusBankSignBank [get]
-// @Tags 大连千海金
+// @Success  200 {array}  models.QhjCusBankSignBankEx
+// @Failure  500 {object} app.Response
+// @Router   /Qhj/QueryCusBankSignBank [get]
+// @Tags     大连千海金
 func QueryCusBankSignBank(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjCusBankSignBankEx{}
@@ -306,14 +306,14 @@ func QueryCusBankSignBank(c *gin.Context) {
 }
 
 // QuerySiteColumnDetail
-// @Summary 查询资讯
-// @Produce json
+// @Summary  查询资讯
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.QhjSiteColumnDetail
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QuerySiteColumnDetail [get]
-// @Tags 大连千海金
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.QhjSiteColumnDetail
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QuerySiteColumnDetail [get]
+// @Tags     大连千海金
 func QuerySiteColumnDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -325,19 +325,19 @@ func QuerySiteColumnDetail(c *gin.Context) {
 }
 
 // QueryAccountInOutApply
-// @Summary 查询充值提现
-// @Produce json
+// @Summary  查询充值提现
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param begindate query string false "申请起始日期(格式yyyymmdd)"
-// @Param enddate query string false "申请截止日期(格式yyyymmdd)"
-// @Param likename query string false "模糊搜索名称"
-// @Param applystatus query int false "状态 1-待审核 2-审核通过 3-审核拒绝"
-// @Param querytype query int false "查询类型 1-提现(出金) 2-充值(出金)"
-// @Success 200 {array} models.QhjAccountOutInApply
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryAccountInOutApply [get]
-// @Tags 大连千海金
+// @Param    userid      query    int    true  "用户ID"
+// @Param    begindate   query    string false "申请起始日期(格式yyyymmdd)"
+// @Param    enddate     query    string false "申请截止日期(格式yyyymmdd)"
+// @Param    likename    query    string false "模糊搜索名称"
+// @Param    applystatus query    int    false "状态 1-待审核 2-审核通过 3-审核拒绝"
+// @Param    querytype   query    int    false "查询类型 1-提现(出金) 2-充值(出金)"
+// @Success  200         {array}  models.QhjAccountOutInApply
+// @Failure  500         {object} app.Response
+// @Router   /Qhj/QueryAccountInOutApply [get]
+// @Tags     大连千海金
 func QueryAccountInOutApply(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -373,16 +373,16 @@ func QueryAccountInOutApply(c *gin.Context) {
 }
 
 // QueryPayOrder
-// @Summary 查询待付款单据
-// @Produce json
+// @Summary  查询待付款单据
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountid query int true "资金账号id"
-// @Param tradeid query int false "成交单号"
-// @Param payflag query string false "付款标识(可多个,逗号隔开) - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止"
-// @Success 200 {array} models.QhjPayOrder
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryPayOrder [get]
-// @Tags 大连千海金
+// @Param    accountid query    int    true  "资金账号id"
+// @Param    tradeid   query    int    false "成交单号"
+// @Param    payflag   query    string false "付款标识(可多个,逗号隔开) - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止"
+// @Success  200       {array}  models.QhjPayOrder
+// @Failure  500       {object} app.Response
+// @Router   /Qhj/QueryPayOrder [get]
+// @Tags     大连千海金
 func QueryPayOrder(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -396,14 +396,14 @@ func QueryPayOrder(c *gin.Context) {
 }
 
 // QueryGoodsEx
-// @Summary 交易商品扩展表
-// @Produce json
+// @Summary  交易商品扩展表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsid query int false "商品id"
-// @Success 200 {array} models.Qhjgoodsex
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryGoodsEx [get]
-// @Tags 大连千海金
+// @Param    goodsid query    int false "商品id"
+// @Success  200     {array}  models.Qhjgoodsex
+// @Failure  500     {object} app.Response
+// @Router   /Qhj/QueryGoodsEx [get]
+// @Tags     大连千海金
 func QueryGoodsEx(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -415,14 +415,14 @@ func QueryGoodsEx(c *gin.Context) {
 }
 
 // QueryParentAreaList
-// @Summary 查询所属机构列表
-// @Produce json
+// @Summary  查询所属机构列表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.QhjParentAreaList
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryParentAreaList [get]
-// @Tags 大连千海金
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.QhjParentAreaList
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryParentAreaList [get]
+// @Tags     大连千海金
 func QueryParentAreaList(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -434,14 +434,14 @@ func QueryParentAreaList(c *gin.Context) {
 }
 
 // QueryAreaFinanceConfig
-// @Summary 查询企业配置表
-// @Produce json
+// @Summary  查询企业配置表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "机构用户ID 其他做市关系,都设置为 1"
-// @Success 200 {array} models.QhjAreaFinanceConfig
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryAreaFinanceConfig [get]
-// @Tags 大连千海金
+// @Param    userid query    int false "机构用户ID 其他做市关系,都设置为 1"
+// @Success  200    {array}  models.QhjAreaFinanceConfig
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryAreaFinanceConfig [get]
+// @Tags     大连千海金
 func QueryAreaFinanceConfig(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjAreaFinanceConfig{}
@@ -450,14 +450,14 @@ func QueryAreaFinanceConfig(c *gin.Context) {
 }
 
 // QueryMyTeam
-// @Summary 查询我的团队
-// @Produce json
+// @Summary  查询我的团队
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.QhjMyTeamEx
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryMyTeam [get]
-// @Tags 大连千海金
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.QhjMyTeamEx
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryMyTeam [get]
+// @Tags     大连千海金
 func QueryMyTeam(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -469,18 +469,18 @@ func QueryMyTeam(c *gin.Context) {
 }
 
 // QueryTeamOrder
-// @Summary 查询团队订单(我的团队/团队订单)
-// @Produce json
+// @Summary  查询团队订单(我的团队/团队订单)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param userid query int true "用户ID"
-// @Param trademode query int false "交易模式"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Success 200 {array} models.QhjTeamOrder
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryMyTeamOrder [get]
-// @Tags 大连千海金
+// @Param    page       query    int    false "页码"
+// @Param    pagesize   query    int    false "每页条数"
+// @Param    userid     query    int    true  "用户ID"
+// @Param    trademode  query    int    false "交易模式"
+// @Param    filtername query    string false "名称(模糊搜索账户)"
+// @Success  200        {array}  models.QhjTeamOrder
+// @Failure  500        {object} app.Response
+// @Router   /Qhj/QueryMyTeamOrder [get]
+// @Tags     大连千海金
 func QueryTeamOrder(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjTeamOrder{}
@@ -489,16 +489,16 @@ func QueryTeamOrder(c *gin.Context) {
 }
 
 // QueryBrokerRewardLog
-// @Summary 查询奖励流水(我的奖励)
-// @Produce json
+// @Summary  查询奖励流水(我的奖励)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Success 200 {array} models.QhjBrokerRewardLog
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryBrokerRewardLog [get]
-// @Tags 大连千海金
+// @Param    userid    query    int    true  "用户ID"
+// @Param    begindate query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate   query    string false "结束交易日(yyyymmdd)"
+// @Success  200       {array}  models.QhjBrokerRewardLog
+// @Failure  500       {object} app.Response
+// @Router   /Qhj/QueryBrokerRewardLog [get]
+// @Tags     大连千海金
 func QueryBrokerRewardLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjBrokerRewardLog{}
@@ -507,17 +507,17 @@ func QueryBrokerRewardLog(c *gin.Context) {
 }
 
 // QueryScoreLog
-// @Summary 查询积分流水(我的积分)
-// @Produce json
+// @Summary  查询积分流水(我的积分)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Param lastnum query int false "最近多少条"
-// @Success 200 {array} models.QhjScoreLog
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryScoreLog [get]
-// @Tags 大连千海金
+// @Param    userid    query    int    true  "用户ID"
+// @Param    begindate query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate   query    string false "结束交易日(yyyymmdd)"
+// @Param    lastnum   query    int    false "最近多少条"
+// @Success  200       {array}  models.QhjScoreLog
+// @Failure  500       {object} app.Response
+// @Router   /Qhj/QueryScoreLog [get]
+// @Tags     大连千海金
 func QueryScoreLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjScoreLog{}
@@ -526,15 +526,15 @@ func QueryScoreLog(c *gin.Context) {
 }
 
 // QueryBrokerApply
-// @Summary 查询经纪人申请
-// @Produce json
+// @Summary  查询经纪人申请
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "所属机构ID"
-// @Param filterstatus query string false "状态 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Success 200 {array} models.QhjBrokerApply
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryBrokerApply [get]
-// @Tags 大连千海金
+// @Param    userid       query    int    false "所属机构ID"
+// @Param    filterstatus query    string false "状态 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Success  200          {array}  models.QhjBrokerApply
+// @Failure  500          {object} app.Response
+// @Router   /Qhj/QueryBrokerApply [get]
+// @Tags     大连千海金
 func QueryBrokerApply(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjBrokerApply{}
@@ -543,14 +543,14 @@ func QueryBrokerApply(c *gin.Context) {
 }
 
 // QueryBrokerApplyEx
-// @Summary 查询经纪人信息和申请记录
-// @Produce json
+// @Summary  查询经纪人信息和申请记录
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "所属机构ID"
-// @Success 200 {array} models.QhjBrokerApplyEx
-// @Failure 500 {object} app.Response
-// @Router /Qhj/QueryBrokerApplyEx [get]
-// @Tags 大连千海金
+// @Param    userid query    int false "所属机构ID"
+// @Success  200    {array}  models.QhjBrokerApplyEx
+// @Failure  500    {object} app.Response
+// @Router   /Qhj/QueryBrokerApplyEx [get]
+// @Tags     大连千海金
 func QueryBrokerApplyEx(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjBrokerApplyEx{}

+ 77 - 77
controllers/qhj/qryQhjAgreement.go

@@ -13,19 +13,19 @@ import (
 )
 
 // QueryAgreementConfig
-// @Summary 查询协议配置
-// @Produce json
+// @Summary  查询协议配置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param agreementid query int false "协议ID"
-// @Param agreementversion query int false "协议版本号"
-// @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
-// @Param isvalid query int false "是否有效 - 是否有效 - 1:正常 2:停用 3:注销"
-// @Param agreementno query string false "协议编号(模糊匹配)"
-// @Param agreementname query string false "协议名称(模糊匹配)"
-// @Success 200 {array} models.QhjAgreementConfig
-// @Failure 500 {object} app.Response
-// @Router /QhjSys/QueryAgreementConfig [get]
-// @Tags 大连千海金(协议和签约信息)
+// @Param    agreementid      query    int    false "协议ID"
+// @Param    agreementversion query    int    false "协议版本号"
+// @Param    agreementtype    query    int    false "协议类型 - 1:注册 2:登录 3:交易"
+// @Param    isvalid          query    int    false "是否有效 - 是否有效 - 1:正常 2:停用 3:注销"
+// @Param    agreementno      query    string false "协议编号(模糊匹配)"
+// @Param    agreementname    query    string false "协议名称(模糊匹配)"
+// @Success  200              {array}  models.QhjAgreementConfig
+// @Failure  500              {object} app.Response
+// @Router   /QhjSys/QueryAgreementConfig [get]
+// @Tags     大连千海金(协议和签约信息)
 func QueryAgreementConfig(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjAgreementConfig{}
@@ -34,18 +34,18 @@ func QueryAgreementConfig(c *gin.Context) {
 }
 
 // QueryAgreementChangeLog
-// @Summary 查询协议配置变更流水
-// @Produce json
+// @Summary  查询协议配置变更流水
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param agreementid query int false "协议ID"
-// @Param agreementversion query int false "协议版本号"
-// @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
-// @Param agreementno query string false "协议编号(模糊匹配)"
-// @Param agreementname query string false "协议名称(模糊匹配)"
-// @Success 200 {array} models.QhjAgreementChangeLog
-// @Failure 500 {object} app.Response
-// @Router /QhjSys/QueryAgreementChangeLog [get]
-// @Tags 大连千海金(协议和签约信息)
+// @Param    agreementid      query    int    false "协议ID"
+// @Param    agreementversion query    int    false "协议版本号"
+// @Param    agreementtype    query    int    false "协议类型 - 1:注册 2:登录 3:交易"
+// @Param    agreementno      query    string false "协议编号(模糊匹配)"
+// @Param    agreementname    query    string false "协议名称(模糊匹配)"
+// @Success  200              {array}  models.QhjAgreementChangeLog
+// @Failure  500              {object} app.Response
+// @Router   /QhjSys/QueryAgreementChangeLog [get]
+// @Tags     大连千海金(协议和签约信息)
 func QueryAgreementChangeLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjAgreementChangeLog{}
@@ -54,21 +54,21 @@ func QueryAgreementChangeLog(c *gin.Context) {
 }
 
 // QueryNodeAgreementConfig
-// @Summary 查询协议节点配置
-// @Produce json
+// @Summary  查询协议节点配置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param configid query int false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)"
-// @Param nodetype query int false "环节类型 - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出"
-// @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
-// @Param agreementid query int false "协议ID"
-// @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
-// @Param agreementversion query int false "协议版本号"
-// @Param agreementno query string false "协议编号(模糊匹配)"
-// @Param agreementname query string false "协议名称(模糊匹配)"
-// @Success 200 {array} models.QhjNodeAgreementConfig
-// @Failure 500 {object} app.Response
-// @Router /QhjSys/QueryNodeAgreementConfig [get]
-// @Tags 大连千海金(协议和签约信息)
+// @Param    configid         query    int    false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)"
+// @Param    nodetype         query    int    false "环节类型 - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出"
+// @Param    goodsid          query    int    false "商品ID [默认为0, NodeType>=3 的为商品值]"
+// @Param    agreementid      query    int    false "协议ID"
+// @Param    agreementtype    query    int    false "协议类型 - 1:注册 2:登录 3:交易"
+// @Param    agreementversion query    int    false "协议版本号"
+// @Param    agreementno      query    string false "协议编号(模糊匹配)"
+// @Param    agreementname    query    string false "协议名称(模糊匹配)"
+// @Success  200              {array}  models.QhjNodeAgreementConfig
+// @Failure  500              {object} app.Response
+// @Router   /QhjSys/QueryNodeAgreementConfig [get]
+// @Tags     大连千海金(协议和签约信息)
 func QueryNodeAgreementConfig(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjNodeAgreementConfig{}
@@ -77,18 +77,18 @@ func QueryNodeAgreementConfig(c *gin.Context) {
 }
 
 // QueryCustomerSignStatus
-// @Summary 查询客户协议签约状态
-// @Produce json
+// @Summary  查询客户协议签约状态
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "客户ID"
-// @Param nodetype query int false "环节类型 - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出  99:首次交易"
-// @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
-// @Param tradedate query string false "创建交易日(yyyyMMdd)"
-// @Param username query string false "用户名称(模糊匹配)"
-// @Success 200 {array} models.QhjCustomerSignStatus
-// @Failure 500 {object} app.Response
-// @Router /QhjSys/QueryCustomerSignStatus [get]
-// @Tags 大连千海金(协议和签约信息)
+// @Param    userid    query    int    false "客户ID"
+// @Param    nodetype  query    int    false "环节类型 - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出  99:首次交易"
+// @Param    goodsid   query    int    false "商品ID [默认为0, NodeType>=3 的为商品值]"
+// @Param    tradedate query    string false "创建交易日(yyyyMMdd)"
+// @Param    username  query    string false "用户名称(模糊匹配)"
+// @Success  200       {array}  models.QhjCustomerSignStatus
+// @Failure  500       {object} app.Response
+// @Router   /QhjSys/QueryCustomerSignStatus [get]
+// @Tags     大连千海金(协议和签约信息)
 func QueryCustomerSignStatus(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjCustomerSignStatus{}
@@ -97,21 +97,21 @@ func QueryCustomerSignStatus(c *gin.Context) {
 }
 
 // QueryQhjCustomerSignLog
-// @Summary 查询客户协议签约流水
-// @Produce json
+// @Summary  查询客户协议签约流水
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param logid query int false "流水ID(SEQ_QHJ_CUSTOMERSIGNLOG)"
-// @Param userid query int false "客户ID"
-// @Param nodetype query int false "环节类型 - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出"
-// @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
-// @Param agreementid query int false "协议ID"
-// @Param username query string false "用户名称(模糊匹配)"
-// @Param agreementno query string false "协议编号(模糊匹配)"
-// @Param agreementname query string false "协议名称(模糊匹配)"
-// @Success 200 {array} models.QhjCustomerSignLog
-// @Failure 500 {object} app.Response
-// @Router /QhjSys/QueryQhjCustomerSignLog [get]
-// @Tags 大连千海金(协议和签约信息)
+// @Param    logid         query    int    false "流水ID(SEQ_QHJ_CUSTOMERSIGNLOG)"
+// @Param    userid        query    int    false "客户ID"
+// @Param    nodetype      query    int    false "环节类型 - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出"
+// @Param    goodsid       query    int    false "商品ID [默认为0, NodeType>=3 的为商品值]"
+// @Param    agreementid   query    int    false "协议ID"
+// @Param    username      query    string false "用户名称(模糊匹配)"
+// @Param    agreementno   query    string false "协议编号(模糊匹配)"
+// @Param    agreementname query    string false "协议名称(模糊匹配)"
+// @Success  200           {array}  models.QhjCustomerSignLog
+// @Failure  500           {object} app.Response
+// @Router   /QhjSys/QueryQhjCustomerSignLog [get]
+// @Tags     大连千海金(协议和签约信息)
 func QueryQhjCustomerSignLog(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjCustomerSignLog{}
@@ -120,22 +120,22 @@ func QueryQhjCustomerSignLog(c *gin.Context) {
 }
 
 // QueryUserNodeCfgAndStatus
-// @Summary 查询用户协议节点配置和状态
-// @Produce json
+// @Summary  查询用户协议节点配置和状态
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "客户ID"
-// @Param configid query int false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)"
-// @Param nodetype query string false "环节类型(可多个,逗号隔开) - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出"
-// @Param goodsid query int false "商品ID [默认为0, NodeType>=3 的为商品值]"
-// @Param agreementid query int false "协议ID"
-// @Param agreementtype query int false "协议类型 - 1:注册 2:登录 3:交易"
-// @Param agreementversion query int false "协议版本号"
-// @Param agreementno query string false "协议编号(模糊匹配)"
-// @Param agreementname query string false "协议名称(模糊匹配)"
-// @Success 200 {array} models.QhjUserNodeCfgAndStatus
-// @Failure 500 {object} app.Response
-// @Router /QhjSys/QueryUserNodeCfgAndStatus [get]
-// @Tags 大连千海金(协议和签约信息)
+// @Param    userid           query    int    false "客户ID"
+// @Param    configid         query    int    false "配置id(SEQ_QHJ_NODEAGREEMENTCONFIG)"
+// @Param    nodetype         query    string false "环节类型(可多个,逗号隔开) - 1:注册  2:登录 3:购买 4:融资购买 5:定投 6:卖出"
+// @Param    goodsid          query    int    false "商品ID [默认为0, NodeType>=3 的为商品值]"
+// @Param    agreementid      query    int    false "协议ID"
+// @Param    agreementtype    query    int    false "协议类型 - 1:注册 2:登录 3:交易"
+// @Param    agreementversion query    int    false "协议版本号"
+// @Param    agreementno      query    string false "协议编号(模糊匹配)"
+// @Param    agreementname    query    string false "协议名称(模糊匹配)"
+// @Success  200              {array}  models.QhjUserNodeCfgAndStatus
+// @Failure  500              {object} app.Response
+// @Router   /QhjSys/QueryUserNodeCfgAndStatus [get]
+// @Tags     大连千海金(协议和签约信息)
 func QueryUserNodeCfgAndStatus(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjUserNodeCfgAndStatus{}

+ 127 - 127
controllers/qhjPCWeb/qryQhjPCWeb.go

@@ -14,14 +14,14 @@ import (
 )
 
 // QuerySubArea
-// @Summary 查询子机构列表
-// @Produce json
+// @Summary  查询子机构列表
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Success 200 {array} models.QhjMgrSubArea
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QuerySubArea [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid query    int true "用户ID"
+// @Success  200    {array}  models.QhjMgrSubArea
+// @Failure  500    {object} app.Response
+// @Router   /QhjMgr/QuerySubArea [get]
+// @Tags     大连千海金(PCWeb)
 func QuerySubArea(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -33,21 +33,21 @@ func QuerySubArea(c *gin.Context) {
 }
 
 // QueryCustomerInfo
-// @Summary 查询客户资料
-// @Produce json
+// @Summary  查询客户资料
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param querytype query int true "查询类型 1:未提交(网上开户表) 2:待审核(网上开户表) 3:正常 4:停用"
-// @Param userinfotype query int false "客户类型 1-个人 2-企业"
-// @Param customername query string false "客户名称(模糊匹配)"
-// @Param nickname query string false "昵称(模糊匹配)"
-// @Param brokername query string false "所属客户经理(模糊匹配)"
-// @Param birthday query string false "生日查询(格式 mmdd 或 mm) 只填2位表示月份匹配(mm, 如05 - 5月), 4位表示查月日匹配(mmdd, 如0503 -5月3日)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrCustomer
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryCustomerInfo [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid       query    int    true  "用户ID"
+// @Param    querytype    query    int    true  "查询类型 1:未提交(网上开户表) 2:待审核(网上开户表) 3:正常 4:停用"
+// @Param    userinfotype query    int    false "客户类型 1-个人 2-企业"
+// @Param    customername query    string false "客户名称(模糊匹配)"
+// @Param    nickname     query    string false "昵称(模糊匹配)"
+// @Param    brokername   query    string false "所属客户经理(模糊匹配)"
+// @Param    birthday     query    string false "生日查询(格式 mmdd 或 mm) 只填2位表示月份匹配(mm, 如05 - 5月), 4位表示查月日匹配(mmdd, 如0503 -5月3日)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjMgrCustomer
+// @Failure  500          {object} app.Response
+// @Router   /QhjMgr/QueryCustomerInfo [get]
+// @Tags     大连千海金(PCWeb)
 func QueryCustomerInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -68,18 +68,18 @@ func QueryCustomerInfo(c *gin.Context) {
 }
 
 // QueryAccountInOutApply
-// @Summary 查询充值提现
-// @Produce json
+// @Summary  查询充值提现
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param querytype query int true "查询类型 1-提现(出金) 2-充值(出金)"
-// @Param applystatus query int false "状态 1-待审核 2-审核通过 3-审核拒绝"
-// @Param begindate query string false "申请起始日期(格式yyyymmdd)"
-// @Param enddate query string false "申请截止日期(格式yyyymmdd)"
-// @Param likename query string false "模糊搜索名称"
-// @Success 200 {array} models.QhjMgrAccountOutInApply
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryAccountInOutApply [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    querytype   query    int    true  "查询类型 1-提现(出金) 2-充值(出金)"
+// @Param    applystatus query    int    false "状态 1-待审核 2-审核通过 3-审核拒绝"
+// @Param    begindate   query    string false "申请起始日期(格式yyyymmdd)"
+// @Param    enddate     query    string false "申请截止日期(格式yyyymmdd)"
+// @Param    likename    query    string false "模糊搜索名称"
+// @Success  200         {array}  models.QhjMgrAccountOutInApply
+// @Failure  500         {object} app.Response
+// @Router   /QhjMgr/QueryAccountInOutApply [get]
+// @Tags     大连千海金(PCWeb)
 func QueryAccountInOutApply(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -115,19 +115,19 @@ func QueryAccountInOutApply(c *gin.Context) {
 }
 
 // QueryTradePosition
-// @Summary 查询持仓汇总
-// @Produce json
+// @Summary  查询持仓汇总
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param userinfotype query int false "用户类型 1-个人 2-企业"
-// @Param trademode query int false "交易模式"
-// @Param goodsid query int false "商品id"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrPositionRsp
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryTradePosition [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid       query    int    true  "用户ID"
+// @Param    userinfotype query    int    false "用户类型 1-个人 2-企业"
+// @Param    trademode    query    int    false "交易模式"
+// @Param    goodsid      query    int    false "商品id"
+// @Param    filtername   query    string false "名称(模糊搜索账户)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjMgrPositionRsp
+// @Failure  500          {object} app.Response
+// @Router   /QhjMgr/QueryTradePosition [get]
+// @Tags     大连千海金(PCWeb)
 func QueryTradePosition(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -147,21 +147,21 @@ func QueryTradePosition(c *gin.Context) {
 }
 
 // QueryTradeDetail
-// @Summary 查询成交明细
-// @Produce json
+// @Summary  查询成交明细
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param userinfotype query int false "用户类型 1-个人 2-企业"
-// @Param trademode query int false "交易模式"
-// @Param goodsid query int false "商品id"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrTradeDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryTradeDetail [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid       query    int    true  "用户ID"
+// @Param    userinfotype query    int    false "用户类型 1-个人 2-企业"
+// @Param    trademode    query    int    false "交易模式"
+// @Param    goodsid      query    int    false "商品id"
+// @Param    filtername   query    string false "名称(模糊搜索账户)"
+// @Param    begindate    query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate      query    string false "结束交易日(yyyymmdd)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjMgrTradeDetailRsp
+// @Failure  500          {object} app.Response
+// @Router   /QhjMgr/QueryTradeDetail [get]
+// @Tags     大连千海金(PCWeb)
 func QueryTradeDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -184,21 +184,21 @@ func QueryTradeDetail(c *gin.Context) {
 }
 
 // QueryTradeOrderDetail
-// @Summary 查询委托明细
-// @Produce json
+// @Summary  查询委托明细
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param userinfotype query int false "用户类型 1-个人 2-企业"
-// @Param trademode query int false "交易模式"
-// @Param goodsid query int false "商品id"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrTradeOrderDetailRsp
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryTradeOrderDetail [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid       query    int    true  "用户ID"
+// @Param    userinfotype query    int    false "用户类型 1-个人 2-企业"
+// @Param    trademode    query    int    false "交易模式"
+// @Param    goodsid      query    int    false "商品id"
+// @Param    filtername   query    string false "名称(模糊搜索账户)"
+// @Param    begindate    query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate      query    string false "结束交易日(yyyymmdd)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjMgrTradeOrderDetailRsp
+// @Failure  500          {object} app.Response
+// @Router   /QhjMgr/QueryTradeOrderDetail [get]
+// @Tags     大连千海金(PCWeb)
 func QueryTradeOrderDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -221,22 +221,22 @@ func QueryTradeOrderDetail(c *gin.Context) {
 }
 
 // QueryTradePayOrder
-// @Summary 查询待付款单
-// @Produce json
+// @Summary  查询待付款单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "用户ID"
-// @Param payflag query string false "付款标识(逗号隔开,如1,2) - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止"
-// @Param userinfotype query int false "用户类型 1-个人 2-企业"
-// @Param trademode query int false "交易模式"
-// @Param goodsid query int false "商品id"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrTradePayOrder
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryTradePayOrder [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid       query    int    true  "用户ID"
+// @Param    payflag      query    string false "付款标识(逗号隔开,如1,2) - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止"
+// @Param    userinfotype query    int    false "用户类型 1-个人 2-企业"
+// @Param    trademode    query    int    false "交易模式"
+// @Param    goodsid      query    int    false "商品id"
+// @Param    filtername   query    string false "名称(模糊搜索账户)"
+// @Param    begindate    query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate      query    string false "结束交易日(yyyymmdd)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjMgrTradePayOrder
+// @Failure  500          {object} app.Response
+// @Router   /QhjMgr/QueryTradePayOrder [get]
+// @Tags     大连千海金(PCWeb)
 func QueryTradePayOrder(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -261,19 +261,19 @@ func QueryTradePayOrder(c *gin.Context) {
 }
 
 // QueryContract
-// @Summary 查询融资信息(合同)
-// @Produce json
+// @Summary  查询融资信息(合同)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户ID"
-// @Param goodsid query int false "商品id"
-// @Param filtername query string false "名称(模糊搜索账户)"
-// @Param risklevel query string false "风险级别(逗号隔开) - 1:正常 2:追加货款 3:支付尾款"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Success 200 {array} models.QhjMgrContract
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryContract [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid     query    int    false "用户ID"
+// @Param    goodsid    query    int    false "商品id"
+// @Param    filtername query    string false "名称(模糊搜索账户)"
+// @Param    risklevel  query    string false "风险级别(逗号隔开) - 1:正常 2:追加货款 3:支付尾款"
+// @Param    begindate  query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate    query    string false "结束交易日(yyyymmdd)"
+// @Success  200        {array}  models.QhjMgrContract
+// @Failure  500        {object} app.Response
+// @Router   /QhjMgr/QueryContract [get]
+// @Tags     大连千海金(PCWeb)
 func QueryContract(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -295,14 +295,14 @@ func QueryContract(c *gin.Context) {
 }
 
 // QueryPickGoods
-// @Summary 查询提货商品
-// @Produce json
+// @Summary  查询提货商品
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param status query string false "状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销"
-// @Success 200 {array} models.QhjMgrPickGoods
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryPickGoods [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    status query    string false "状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销"
+// @Success  200    {array}  models.QhjMgrPickGoods
+// @Failure  500    {object} app.Response
+// @Router   /QhjMgr/QueryPickGoods [get]
+// @Tags     大连千海金(PCWeb)
 func QueryPickGoods(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	req := struct {
@@ -314,17 +314,17 @@ func QueryPickGoods(c *gin.Context) {
 }
 
 // QueryBrokerApply
-// @Summary 查询经纪人申请
-// @Produce json
+// @Summary  查询经纪人申请
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "所属机构ID"
-// @Param filterstatus query string false "状态 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
-// @Param filtername query string false "名称(模糊匹配)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrBrokerApply
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryBrokerApply [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid       query    int    false "所属机构ID"
+// @Param    filterstatus query    string false "状态 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
+// @Param    filtername   query    string false "名称(模糊匹配)"
+// @Param    includesub   query    int    false "是否包含子级 1-包含"
+// @Success  200          {array}  models.QhjMgrBrokerApply
+// @Failure  500          {object} app.Response
+// @Router   /QhjMgr/QueryBrokerApply [get]
+// @Tags     大连千海金(PCWeb)
 func QueryBrokerApply(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjMgrBrokerApply{}
@@ -333,18 +333,18 @@ func QueryBrokerApply(c *gin.Context) {
 }
 
 // QueryBrokerRewardReport
-// @Summary 查询经纪人奖励报表(废弃)
-// @Produce json
+// @Summary  查询经纪人奖励报表(废弃)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int true "所属机构ID"
-// @Param cycletype query int true "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
-// @Param cycletime query string true "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD) 全(0)【原值】"
-// @Param filtername query string false "名称(模糊匹配)"
-// @Param includesub query int false "是否包含子级 1-包含"
-// @Success 200 {array} models.QhjMgrBrokerRewardReport
-// @Failure 500 {object} app.Response
-// @Router /QhjMgr/QueryBrokerRewardReport [get]
-// @Tags 大连千海金(PCWeb)
+// @Param    userid     query    int    true  "所属机构ID"
+// @Param    cycletype  query    int    true  "周期类型 - 0:日 1:月 2:季 3:年 4:周 5:全报表【原值】"
+// @Param    cycletime  query    string true  "周期时间 日(YYYYMMDD) 月(YYYYMM)  季(YYYYQ) 年(YYYY) 周(YYYYMMDD) 全(0)【原值】"
+// @Param    filtername query    string false "名称(模糊匹配)"
+// @Param    includesub query    int    false "是否包含子级 1-包含"
+// @Success  200        {array}  models.QhjMgrBrokerRewardReport
+// @Failure  500        {object} app.Response
+// @Router   /QhjMgr/QueryBrokerRewardReport [get]
+// @Tags     大连千海金(PCWeb)
 func QueryBrokerRewardReport(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.QhjMgrBrokerRewardReport{}

+ 30 - 30
controllers/quote/history.go

@@ -42,19 +42,19 @@ type QueryHistoryDatasReq struct {
 }
 
 // QueryHistoryDatas 查询行情历史数据
-// @Summary 查询行情历史数据
-// @Produce json
+// @Summary  查询行情历史数据
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param cycleType query int true "周期类型, 0-秒 1: 1分钟 2: 5分钟 3: 30分钟 4: 60分钟 120: 2小时 240: 4小时 11: 日线 12:周线 13:月线 14:年线"
-// @Param goodsCode query string true "商品代码"
-// @Param startTime query string false "开始时间,格式:yyyy-MM-dd HH:mm:ss"
-// @Param endTime query string false "结束时间,格式:yyyy-MM-dd HH:mm:ss"
-// @Param count query int false "条数"
-// @Param isAsc query bool false "是否按时间顺序排序(默认为时间倒序排序)"
-// @Success 200 {object} HistoryData
-// @Failure 500 {object} app.Response
-// @Router /Quote/QueryHistoryDatas [get]
-// @Tags 行情服务
+// @Param    cycleType query    int    true  "周期类型, 0-秒 1: 1分钟 2: 5分钟 3: 30分钟 4: 60分钟 120: 2小时 240: 4小时 11: 日线 12:周线 13:月线 14:年线"
+// @Param    goodsCode query    string true  "商品代码"
+// @Param    startTime query    string false "开始时间,格式:yyyy-MM-dd HH:mm:ss"
+// @Param    endTime   query    string false "结束时间,格式:yyyy-MM-dd HH:mm:ss"
+// @Param    count     query    int    false "条数"
+// @Param    isAsc     query    bool   false "是否按时间顺序排序(默认为时间倒序排序)"
+// @Success  200       {object} HistoryData
+// @Failure  500       {object} app.Response
+// @Router   /Quote/QueryHistoryDatas [get]
+// @Tags     行情服务
 func QueryHistoryDatas(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -280,18 +280,18 @@ type QueryHistoryTikDatasReq struct {
 }
 
 // QueryHistoryTikDatas 查询行情Tik数据
-// @Summary 查询行情Tik数据
-// @Produce json
+// @Summary  查询行情Tik数据
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsCode query string true "商品代码"
-// @Param startTime query string false "开始时间,格式:yyyy-MM-dd HH:mm:ss"
-// @Param endTime query string false "结束时间,格式:yyyy-MM-dd HH:mm:ss"
-// @Param count query int false "条数"
-// @Param isAsc query bool false "是否按时间顺序排序(默认为时间倒序排序)"
-// @Success 200 {object} HistoryTikData
-// @Failure 500 {object} app.Response
-// @Router /Quote/QueryHistoryTikDatas [get]
-// @Tags 行情服务
+// @Param    goodsCode query    string true  "商品代码"
+// @Param    startTime query    string false "开始时间,格式:yyyy-MM-dd HH:mm:ss"
+// @Param    endTime   query    string false "结束时间,格式:yyyy-MM-dd HH:mm:ss"
+// @Param    count     query    int    false "条数"
+// @Param    isAsc     query    bool   false "是否按时间顺序排序(默认为时间倒序排序)"
+// @Success  200       {object} HistoryTikData
+// @Failure  500       {object} app.Response
+// @Router   /Quote/QueryHistoryTikDatas [get]
+// @Tags     行情服务
 func QueryHistoryTikDatas(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -405,14 +405,14 @@ type TSDataRunStep struct {
 }
 
 // QueryTSData 分时图数据查询
-// @Summary 分时图数据查询
-// @Produce json
+// @Summary  分时图数据查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsCode query string true "商品代码"
-// @Success 200 {object} QueryTSDataRsp
-// @Failure 500 {object} app.Response
-// @Router /Quote/QueryTSData [get]
-// @Tags 行情服务
+// @Param    goodsCode query    string true "商品代码"
+// @Success  200       {object} QueryTSDataRsp
+// @Failure  500       {object} app.Response
+// @Router   /Quote/QueryTSData [get]
+// @Tags     行情服务
 func QueryTSData(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 7 - 7
controllers/quote/quote.go

@@ -146,14 +146,14 @@ type QueryQuoteDayRsp struct {
 }
 
 // QueryQuoteDay 获取商品盘面信息
-// @Summary 获取商品盘面信息
-// @Produce json
+// @Summary  获取商品盘面信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param goodsCodes query string false "此参数不填则查所有;商品代码列表,格式:CU2102,CU2103,AL2107"
-// @Success 200 {object} QueryQuoteDayRsp
-// @Failure 500 {object} app.Response
-// @Router /Quote/QueryQuoteDay [get]
-// @Tags 行情服务
+// @Param    goodsCodes query    string false "此参数不填则查所有;商品代码列表,格式:CU2102,CU2103,AL2107"
+// @Success  200        {object} QueryQuoteDayRsp
+// @Failure  500        {object} app.Response
+// @Router   /Quote/QueryQuoteDay [get]
+// @Tags     行情服务
 func QueryQuoteDay(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 8 - 8
controllers/search/goodsSearch.go

@@ -17,15 +17,15 @@ type GoodsesReq struct {
 }
 
 // Goodses 检索商品信息
-// @Summary 检索商品信息
+// @Summary     检索商品信息
 // @Description 说明:使用检索内容模糊匹配商品代码和商品名称
-// @Produce json
-// @Param content query string true "检索内容"
-// @Param tradeModes query string false "交易模式,格式:1,2,3"
-// @Success 200 {object} models.SearchGoods
-// @Failure 500 {object} app.Response
-// @Router /Search/SearchGoodses [get]
-// @Tags 检索服务
+// @Produce     json
+// @Param       content    query    string true  "检索内容"
+// @Param       tradeModes query    string false "交易模式,格式:1,2,3"
+// @Success     200        {object} models.SearchGoods
+// @Failure     500        {object} app.Response
+// @Router      /Search/SearchGoodses [get]
+// @Tags        检索服务
 func Goodses(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 53 - 53
controllers/szdz/szdz.go

@@ -42,20 +42,20 @@ type QueryRecieptOrderRsp struct {
 }
 
 // QueryRecieptOrder 点选挂牌委托单据查询(摘牌大厅)
-// @Summary 点选挂牌委托单据查询(摘牌大厅)
+// @Summary     点选挂牌委托单据查询(摘牌大厅)
 // @Description 说明:pagesize参数赋值不为0时表示需要分页;page参数从0开始计算
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param goodsID query int true "商品ID"
-// @Param accountName query string false "所属账户名称"
-// @Param marketID query int false "市场ID"
-// @Param buyorsell query int true "方向 - 0:买 1:卖"
-// @Success 200 {object} QueryRecieptOrderRsp
-// @Failure 500 {object} app.Response
-// @Router /SZDZ/QueryRecieptOrder [get]
-// @Tags 定制【尚志大宗】
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       page        query    int    false "页码"
+// @Param       pagesize    query    int    false "每页条数"
+// @Param       goodsID     query    int    true  "商品ID"
+// @Param       accountName query    string false "所属账户名称"
+// @Param       marketID    query    int    false "市场ID"
+// @Param       buyorsell   query    int    true  "方向 - 0:买 1:卖"
+// @Success     200         {object} QueryRecieptOrderRsp
+// @Failure     500         {object} app.Response
+// @Router      /SZDZ/QueryRecieptOrder [get]
+// @Tags        定制【尚志大宗】
 // 参考通用查询:Client_SZDZ3_SearchRecieptOrder
 func QueryRecieptOrder(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -215,15 +215,15 @@ type QueryGoodsPickupRsp struct {
 }
 
 // QueryGoodsPickup 商品提货单查询
-// @Summary 商品提货单查询
-// @Produce json
+// @Summary  商品提货单查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param takeOrderStatus query int false "提货状态 - 1:待发货 2:已发货 3:已收货"
-// @Success 200 {object} QueryGoodsPickupRsp
-// @Failure 500 {object} app.Response
-// @Router /SZDZ/QueryGoodsPickup [get]
-// @Tags 定制【尚志大宗】
+// @Param    accountID       query    string true  "资金账户 - 格式:1,2,3"
+// @Param    takeOrderStatus query    int    false "提货状态 - 1:待发货 2:已发货 3:已收货"
+// @Success  200             {object} QueryGoodsPickupRsp
+// @Failure  500             {object} app.Response
+// @Router   /SZDZ/QueryGoodsPickup [get]
+// @Tags     定制【尚志大宗】
 func QueryGoodsPickup(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -272,16 +272,16 @@ type QueryConvertLogRsp struct {
 }
 
 // QueryConvertLog 交易系统转换流水查询
-// @Summary 交易系统转换流水查询
-// @Produce json
+// @Summary  交易系统转换流水查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param startDate query string false "开始时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
-// @Param endDate query string false "结束时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
-// @Success 200 {object} QueryConvertLogRsp
-// @Failure 500 {object} app.Response
-// @Router /SZDZ/QueryConvertLog [get]
-// @Tags 定制【尚志大宗】
+// @Param    accountID query    string true  "资金账户 - 格式:1,2,3"
+// @Param    startDate query    string false "开始时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
+// @Param    endDate   query    string false "结束时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
+// @Success  200       {object} QueryConvertLogRsp
+// @Failure  500       {object} app.Response
+// @Router   /SZDZ/QueryConvertLog [get]
+// @Tags     定制【尚志大宗】
 func QueryConvertLog(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -337,14 +337,14 @@ type SearchWhiteReq struct {
 }
 
 // SearchWhite 搜索白名单
-// @Summary 搜索白名单
-// @Produce json
+// @Summary  搜索白名单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Success 200 {object} models.Szdz3searchwhitelist
-// @Failure 500 {object} app.Response
-// @Router /SZDZ/SearchWhite [get]
-// @Tags 定制【尚志大宗】
+// @Param    userID query    int true "用户ID"
+// @Success  200    {object} models.Szdz3searchwhitelist
+// @Failure  500    {object} app.Response
+// @Router   /SZDZ/SearchWhite [get]
+// @Tags     定制【尚志大宗】
 func SearchWhite(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -378,16 +378,16 @@ type QueryConvertConfigReq struct {
 }
 
 // QueryConvertConfig 查询交易系统转换设置
-// @Summary 查询交易系统转换设置
-// @Produce json
+// @Summary  查询交易系统转换设置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param convertType query int false "转换类型 - 1:金点赞转交易 2:金点拍转交易 3:交易转金点赞(不设置) 4:交易转金点拍(不设置) 5:花生米转交易 6:交易转花生米(不设置)"
-// @Param outerGoodsCode query string false "外部商品代码[JD\PD]"
-// @Param innerGoodsIDs query string false "内部商品ID列表[交易],格式:1,2,3"
-// @Success 200 {object} models.Szdz3convertconfig
-// @Failure 500 {object} app.Response
-// @Router /SZDZ/QueryConvertConfig [get]
-// @Tags 定制【尚志大宗】
+// @Param    convertType    query    int    false "转换类型 - 1:金点赞转交易 2:金点拍转交易 3:交易转金点赞(不设置) 4:交易转金点拍(不设置) 5:花生米转交易 6:交易转花生米(不设置)"
+// @Param    outerGoodsCode query    string false "外部商品代码[JD\PD]"
+// @Param    innerGoodsIDs  query    string false "内部商品ID列表[交易],格式:1,2,3"
+// @Success  200            {object} models.Szdz3convertconfig
+// @Failure  500            {object} app.Response
+// @Router   /SZDZ/QueryConvertConfig [get]
+// @Tags     定制【尚志大宗】
 func QueryConvertConfig(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -463,14 +463,14 @@ type QuerySZDZTradePositionRsp struct {
 }
 
 // QuerySZDZTradePosition 持仓汇总查询(尚志大宗)
-// @Summary 持仓汇总查询(尚志大宗)
-// @Produce json
+// @Summary  持仓汇总查询(尚志大宗)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param accountID query int true "资金账户"
-// @Success 200 {object} QuerySZDZTradePositionRsp
-// @Failure 500 {object} app.Response
-// @Router /SZDZ/QuerySZDZTradePosition [get]
-// @Tags 定制【尚志大宗】
+// @Param    accountID query    int true "资金账户"
+// @Success  200       {object} QuerySZDZTradePositionRsp
+// @Failure  500       {object} app.Response
+// @Router   /SZDZ/QuerySZDZTradePosition [get]
+// @Tags     定制【尚志大宗】
 func QuerySZDZTradePosition(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 37 - 37
controllers/taaccount/taaccount.go

@@ -20,15 +20,15 @@ type GetTaAccountsReq struct {
 }
 
 // GetTaAccounts 获取资金账户信息
-// @Summary 获取资金账户信息
-// @Produce json
+// @Summary  获取资金账户信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账户"
-// @Param taAccountType query int false "账号类型 - 1:外部账号 2:内部账号 3:内部做市自营账号 4:内部做市接单账号"
-// @Success 200 {object} models.Taaccount
-// @Failure 500 {object} app.Response
-// @Router /TaAccount/GetTaAccounts [get]
-// @Tags 资金账户
+// @Param    loginID       query    int true  "登录账户"
+// @Param    taAccountType query    int false "账号类型 - 1:外部账号 2:内部账号 3:内部做市自营账号 4:内部做市接单账号"
+// @Success  200           {object} models.Taaccount
+// @Failure  500           {object} app.Response
+// @Router   /TaAccount/GetTaAccounts [get]
+// @Tags     资金账户
 func GetTaAccounts(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -126,17 +126,17 @@ type QueryAmountLogRsp struct {
 }
 
 // QueryAmountLog 资金流水查询(当前)
-// @Summary 资金流水查询(当前)
-// @Produce json
+// @Summary  资金流水查询(当前)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param OperateType query string false "资金操作类型 - 格式:1,2,3"
-// @Success 200 {object} QueryAmountLogRsp
-// @Failure 500 {object} app.Response
-// @Router /TaAccount/QueryAmountLog [get]
-// @Tags 资金账户
+// @Param    page        query    int    false "页码"
+// @Param    pagesize    query    int    false "每页条数"
+// @Param    accountID   query    string true  "资金账户 - 格式:1,2,3"
+// @Param    OperateType query    string false "资金操作类型 - 格式:1,2,3"
+// @Success  200         {object} QueryAmountLogRsp
+// @Failure  500         {object} app.Response
+// @Router   /TaAccount/QueryAmountLog [get]
+// @Tags     资金账户
 // 参考通用查询:QueryClientAmountLog
 func QueryAmountLog(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -228,19 +228,19 @@ type QueryHisAmountLogRsp struct {
 }
 
 // QueryHisAmountLog 资金流水查询(历史)
-// @Summary 资金流水查询(历史)
-// @Produce json
+// @Summary  资金流水查询(历史)
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param accountID query string true "资金账户 - 格式:1,2,3"
-// @Param OperateType query string false "资金操作类型 - 格式:1,2,3"
-// @Param startDate query string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
-// @Param endDate query string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
-// @Success 200 {object} QueryHisAmountLogRsp
-// @Failure 500 {object} app.Response
-// @Router /TaAccount/QueryHisAmountLog [get]
-// @Tags 资金账户
+// @Param    page        query    int    false "页码"
+// @Param    pagesize    query    int    false "每页条数"
+// @Param    accountID   query    string true  "资金账户 - 格式:1,2,3"
+// @Param    OperateType query    string false "资金操作类型 - 格式:1,2,3"
+// @Param    startDate   query    string false "开始时间 - 闭区间,格式:yyyy-MM-dd"
+// @Param    endDate     query    string false "结束时间 - 闭区间,格式:yyyy-MM-dd"
+// @Success  200         {object} QueryHisAmountLogRsp
+// @Failure  500         {object} app.Response
+// @Router   /TaAccount/QueryHisAmountLog [get]
+// @Tags     资金账户
 // 参考通用查询:Client_QueryHis_taaccountlog
 func QueryHisAmountLog(c *gin.Context) {
 	appG := app.Gin{C: c}
@@ -314,14 +314,14 @@ func QueryHisAmountLog(c *gin.Context) {
 }
 
 // QueryRelatedTaAccount
-// @Summary 查询关联资金账户信息
-// @Produce json
+// @Summary  查询关联资金账户信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param relateduserid query int true "关联UserID"
-// @Success 200 {array} models.RelatedTaAccount
-// @Failure 500 {object} app.Response
-// @Router /TaAccount/QueryRelatedTaAccount [get]
-// @Tags 资金账户
+// @Param    relateduserid query    int true "关联UserID"
+// @Success  200           {array}  models.RelatedTaAccount
+// @Failure  500           {object} app.Response
+// @Router   /TaAccount/QueryRelatedTaAccount [get]
+// @Tags     资金账户
 func QueryRelatedTaAccount(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.RelatedTaAccount{}

+ 58 - 58
controllers/tjmd/qryTjmd.go

@@ -13,18 +13,18 @@ import (
 )
 
 // QueryQuoteGoodsList
-// @Summary 查询掉期报价列表
+// @Summary     查询掉期报价列表
 // @Description 用户类型必传, 查掉期报价列表 marketids=掉期市场id
-// @Produce json
-// @Security ApiKeyAuth
-// @Param usertype query int true "用户类型"
-// @Param marketids query string false "市场id, 格式 1,2,3"
-// @Param goodsgroupid query int false "商品组id"
-// @Param goodsid query int false "商品id"
-// @Success 200 {array} models.TjmdQuoteGoods
-// @Failure 500 {object} app.Response
-// @Router /Tjmd/QueryQuoteGoodsList [get]
-// @Tags 天津麦顿
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       usertype     query    int    true  "用户类型"
+// @Param       marketids    query    string false "市场id, 格式 1,2,3"
+// @Param       goodsgroupid query    int    false "商品组id"
+// @Param       goodsid      query    int    false "商品id"
+// @Success     200          {array}  models.TjmdQuoteGoods
+// @Failure     500          {object} app.Response
+// @Router      /Tjmd/QueryQuoteGoodsList [get]
+// @Tags        天津麦顿
 func QueryQuoteGoodsList(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TjmdQuoteGoods{}
@@ -33,21 +33,21 @@ func QueryQuoteGoodsList(c *gin.Context) {
 }
 
 // QueryTjmdTradeOrderDetail
-// @Summary 查询掉期买卖大厅
+// @Summary     查询掉期买卖大厅
 // @Description 用户类型必传, 投资者只能看到自营会员的单, 反之亦然
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param userid query int true "用户id"
-// @Param usertype query int true "用户类型"
-// @Param marketids query string false "市场id, 格式 1,2,3"
-// @Param goodsid query int true "商品id"
-// @Param buyorsell query int true "买卖方向 0-买 1-卖"
-// @Success 200 {array} models.TjmdTradeOrderDetail
-// @Failure 500 {object} app.Response
-// @Router /Tjmd/QueryTjmdTradeOrderDetail [get]
-// @Tags 天津麦顿
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       page      query    int    false "页码"
+// @Param       pagesize  query    int    false "每页条数"
+// @Param       userid    query    int    true  "用户id"
+// @Param       usertype  query    int    true  "用户类型"
+// @Param       marketids query    string false "市场id, 格式 1,2,3"
+// @Param       goodsid   query    int    true  "商品id"
+// @Param       buyorsell query    int    true  "买卖方向 0-买 1-卖"
+// @Success     200       {array}  models.TjmdTradeOrderDetail
+// @Failure     500       {object} app.Response
+// @Router      /Tjmd/QueryTjmdTradeOrderDetail [get]
+// @Tags        天津麦顿
 func QueryTjmdTradeOrderDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TjmdTradeOrderDetail{}
@@ -56,18 +56,18 @@ func QueryTjmdTradeOrderDetail(c *gin.Context) {
 }
 
 // QueryTjmdTransferApply
-// @Summary 查询掉期协议单
-// @Produce json
+// @Summary  查询掉期协议单
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param applytype query int true "类型  1-我的申请 2-对方申请"
-// @Param marketids query string false "市场id, 格式 1,2,3"
-// @Param accountids query string false "资金账号, 格式 25000000001,25000000003"
-// @Param begindate query string false "开始交易日(yyyymmdd)"
-// @Param enddate query string false "结束交易日(yyyymmdd)"
-// @Success 200 {array} models.TjmdTransferApply
-// @Failure 500 {object} app.Response
-// @Router /Tjmd/QueryTjmdTransferApply [get]
-// @Tags 天津麦顿
+// @Param    applytype  query    int    true  "类型  1-我的申请 2-对方申请"
+// @Param    marketids  query    string false "市场id, 格式 1,2,3"
+// @Param    accountids query    string false "资金账号, 格式 25000000001,25000000003"
+// @Param    begindate  query    string false "开始交易日(yyyymmdd)"
+// @Param    enddate    query    string false "结束交易日(yyyymmdd)"
+// @Success  200        {array}  models.TjmdTransferApply
+// @Failure  500        {object} app.Response
+// @Router   /Tjmd/QueryTjmdTransferApply [get]
+// @Tags     天津麦顿
 func QueryTjmdTransferApply(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TjmdTransferApply{}
@@ -76,16 +76,16 @@ func QueryTjmdTransferApply(c *gin.Context) {
 }
 
 // QueryTjmdTodayAccountMargin
-// @Summary 查询今日账户保证金配置
-// @Produce json
+// @Summary  查询今日账户保证金配置
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param marketid query string false "市场id"
-// @Param goodsid query string false "商品id"
-// @Param accountid query string false "资金账号"
-// @Success 200 {array} models.TjmdTodayAccountMargin
-// @Failure 500 {object} app.Response
-// @Router /Tjmd/QueryTjmdTodayAccountMargin [get]
-// @Tags 天津麦顿
+// @Param    marketid  query    string false "市场id"
+// @Param    goodsid   query    string false "商品id"
+// @Param    accountid query    string false "资金账号"
+// @Success  200       {array}  models.TjmdTodayAccountMargin
+// @Failure  500       {object} app.Response
+// @Router   /Tjmd/QueryTjmdTodayAccountMargin [get]
+// @Tags     天津麦顿
 func QueryTjmdTodayAccountMargin(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TjmdTodayAccountMargin{}
@@ -94,13 +94,13 @@ func QueryTjmdTodayAccountMargin(c *gin.Context) {
 }
 
 // QueryTjmdMarketSection
-// @Summary 查询市场板块
-// @Produce json
+// @Summary  查询市场板块
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {array} models.TjmdMarketSection
-// @Failure 500 {object} app.Response
-// @Router /Tjmd/QueryTjmdMarketSection [get]
-// @Tags 天津麦顿
+// @Success  200 {array}  models.TjmdMarketSection
+// @Failure  500 {object} app.Response
+// @Router   /Tjmd/QueryTjmdMarketSection [get]
+// @Tags     天津麦顿
 func QueryTjmdMarketSection(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TjmdMarketSection{}
@@ -109,14 +109,14 @@ func QueryTjmdMarketSection(c *gin.Context) {
 }
 
 // QueryTjmdHolderDetailTradeInfo
-// @Summary 掉期商品订单详情(交易确认书)
-// @Produce json
+// @Summary  掉期商品订单详情(交易确认书)
+// @Produce  json
 // @Security ApiKeyAuth
-// @param tradeid query string true "成交单号"
-// @Success 200 {array} models.TjmdHolderDetailTradeInfo
-// @Failure 500 {object} app.Response
-// @Router /Tjmd/QueryTjmdHolderDetailTradeInfo [get]
-// @Tags 天津麦顿
+// @param    tradeid query    string true "成交单号"
+// @Success  200     {array}  models.TjmdHolderDetailTradeInfo
+// @Failure  500     {object} app.Response
+// @Router   /Tjmd/QueryTjmdHolderDetailTradeInfo [get]
+// @Tags     天津麦顿
 func QueryTjmdHolderDetailTradeInfo(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TjmdHolderDetailTradeInfo{}

+ 13 - 13
controllers/trade/trade.go

@@ -37,20 +37,20 @@ type QueryRecieptOrderRsp struct {
 }
 
 // QueryRecieptOrder 点选挂牌委托单据查询(保证金摘牌大厅)
-// @Summary 点选挂牌委托单据查询(保证金摘牌大厅)
+// @Summary     点选挂牌委托单据查询(保证金摘牌大厅)
 // @Description 说明:pagesize参数赋值不为0时表示需要分页;page参数从0开始计算
-// @Produce json
-// @Security ApiKeyAuth
-// @Param page query int false "页码"
-// @Param pagesize query int false "每页条数"
-// @Param goodsID query int true "商品ID"
-// @Param accountName query string false "所属账户名称"
-// @Param marketID query int false "市场ID"
-// @Param buyorsell query int true "方向 - 0:买 1:卖"
-// @Success 200 {object} QueryRecieptOrderRsp
-// @Failure 500 {object} app.Response
-// @Router /Trade/QueryRecieptOrder [get]
-// @Tags 通用交易
+// @Produce     json
+// @Security    ApiKeyAuth
+// @Param       page        query    int    false "页码"
+// @Param       pagesize    query    int    false "每页条数"
+// @Param       goodsID     query    int    true  "商品ID"
+// @Param       accountName query    string false "所属账户名称"
+// @Param       marketID    query    int    false "市场ID"
+// @Param       buyorsell   query    int    true  "方向 - 0:买 1:卖"
+// @Success     200         {object} QueryRecieptOrderRsp
+// @Failure     500         {object} app.Response
+// @Router      /Trade/QueryRecieptOrder [get]
+// @Tags        通用交易
 // 参考通用查询:Client_SZDZ3_SearchRecieptOrder
 func QueryRecieptOrder(c *gin.Context) {
 	appG := app.Gin{C: c}

+ 12 - 12
controllers/tradexx/qryTradexx.go

@@ -13,19 +13,19 @@ import (
 )
 
 // QueryTradeHolderDetail
-// @Summary 查询持仓明细
-// @Produce json
+// @Summary  查询持仓明细
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userid query int false "用户id"
-// @Param accids query string false "资金账号, 格式 1,2,3"
-// @Param trademodes query string false "交易模式, 格式 1,2,3"
-// @Param marketids query string false "市场id, 格式 1,2,3"
-// @Param goodsid query int false "商品id"
-// @Param buyorsell query int false "买卖方向 0-买 1-卖"
-// @Success 200 {array} models.TradeHolderDetail
-// @Failure 500 {object} app.Response
-// @Router /Order/QueryTradeHolderDetail [get]
-// @Tags 通用单据
+// @Param    userid     query    int    false "用户id"
+// @Param    accids     query    string false "资金账号, 格式 1,2,3"
+// @Param    trademodes query    string false "交易模式, 格式 1,2,3"
+// @Param    marketids  query    string false "市场id, 格式 1,2,3"
+// @Param    goodsid    query    int    false "商品id"
+// @Param    buyorsell  query    int    false "买卖方向 0-买 1-卖"
+// @Success  200        {array}  models.TradeHolderDetail
+// @Failure  500        {object} app.Response
+// @Router   /Order/QueryTradeHolderDetail [get]
+// @Tags     通用单据
 func QueryTradeHolderDetail(c *gin.Context) {
 	a := app.GinUtils{Gin: app.Gin{C: c}}
 	m := models.TradeHolderDetail{BUYORSELL: -1}

+ 7 - 7
controllers/user/login.go

@@ -17,14 +17,14 @@ type GetLoginIDReq struct {
 }
 
 // GetLoginID 获取登录ID
-// @Summary 获取登录ID
+// @Summary     获取登录ID
 // @Description UserName 可传入“登录账号”、“登录代码”和“手机号码”
-// @Produce json
-// @Param username query string true "登录代码"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/GetLoginID [get]
-// @Tags 用户信息
+// @Produce     json
+// @Param       username query    string true "登录代码"
+// @Success     200      {object} app.Response
+// @Failure     500      {object} app.Response
+// @Router      /User/GetLoginID [get]
+// @Tags        用户信息
 func GetLoginID(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 81 - 81
controllers/user/user.go

@@ -20,12 +20,12 @@ type QueryUserReferNumReq struct {
 
 // QueryUserReferNum 获取用户邀请码
 // @Summary 获取用户邀请码
-// @Produce json
-// @Param userID query int true "用户ID"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/QueryUserReferNum [get]
-// @Tags 用户信息
+// @Produce  json
+// @Param   userID query    int true "用户ID"
+// @Success 200    {object} app.Response
+// @Failure 500    {object} app.Response
+// @Router  /User/QueryUserReferNum [get]
+// @Tags    用户信息
 func QueryUserReferNum(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -60,15 +60,15 @@ type QueryUserInfoReq struct {
 }
 
 // QueryUserInfo 获取用户信息
-// @Summary 获取用户信息
-// @Produce json
+// @Summary  获取用户信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Param isDecrypt query bool false "是否解密"
-// @Success 200 {object} models.Userinfo
-// @Failure 500 {object} app.Response
-// @Router /User/QueryUserInfo [get]
-// @Tags 用户信息
+// @Param    userID    query    int  true  "用户ID"
+// @Param    isDecrypt query    bool false "是否解密"
+// @Success  200       {object} models.Userinfo
+// @Failure  500       {object} app.Response
+// @Router   /User/QueryUserInfo [get]
+// @Tags     用户信息
 func QueryUserInfo(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -140,14 +140,14 @@ type GetUserAuthStatusReq struct {
 }
 
 // GetUserAuthStatus 获取用户实名认证状态
-// @Summary 获取用户实名认证状态
-// @Produce json
+// @Summary  获取用户实名认证状态
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/GetUserAuthStatus [get]
-// @Tags 用户信息
+// @Param    userID query    int true "用户ID"
+// @Success  200    {object} app.Response
+// @Failure  500    {object} app.Response
+// @Router   /User/GetUserAuthStatus [get]
+// @Tags     用户信息
 func GetUserAuthStatus(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -187,14 +187,14 @@ type GetUserAccountReq struct {
 }
 
 // GetUserAccount 获取用户账号信息
-// @Summary 获取用户账号信息
-// @Produce json
+// @Summary  获取用户账号信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Success 200 {object} models.Useraccount
-// @Failure 500 {object} app.Response
-// @Router /User/GetUserAccount [get]
-// @Tags 用户信息
+// @Param    userID query    int true "用户ID"
+// @Success  200    {object} models.Useraccount
+// @Failure  500    {object} app.Response
+// @Router   /User/GetUserAccount [get]
+// @Tags     用户信息
 func GetUserAccount(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -241,14 +241,14 @@ type LoginQueryRsp struct {
 }
 
 // LoginQuery 账户登录后信息查询
-// @Summary 账户登录后信息查询
-// @Produce json
+// @Summary  账户登录后信息查询
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param loginID query int true "登录账号"
-// @Success 200 {object} LoginQueryRsp
-// @Failure 500 {object} app.Response
-// @Router /User/LoginQuery [get]
-// @Tags 用户信息
+// @Param    loginID query    int true "登录账号"
+// @Success  200     {object} LoginQueryRsp
+// @Failure  500     {object} app.Response
+// @Router   /User/LoginQuery [get]
+// @Tags     用户信息
 func LoginQuery(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -379,14 +379,14 @@ type QueryUserFavoriteGoodsesReq struct {
 }
 
 // QueryUserFavoriteGoodses 获取用户商品收藏信息
-// @Summary 获取用户商品收藏信息
-// @Produce json
+// @Summary  获取用户商品收藏信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Success 200 {object} models.Userfavoritegoods
-// @Failure 500 {object} app.Response
-// @Router /User/QueryUserFavoriteGoodses [get]
-// @Tags 用户信息
+// @Param    userID query    int true "用户ID"
+// @Success  200    {object} models.Userfavoritegoods
+// @Failure  500    {object} app.Response
+// @Router   /User/QueryUserFavoriteGoodses [get]
+// @Tags     用户信息
 func QueryUserFavoriteGoodses(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -418,15 +418,15 @@ type UpdateUserFavoriteGoodsReq struct {
 }
 
 // AddUserFavoriteGoods 添加用户商品收藏信息
-// @Summary 添加用户商品收藏信息
-// @Produce json
+// @Summary  添加用户商品收藏信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Param goodsID query int true "商品ID"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/AddUserFavoriteGoods [post]
-// @Tags 用户信息
+// @Param    userID  query    int true "用户ID"
+// @Param    goodsID query    int true "商品ID"
+// @Success  200     {object} app.Response
+// @Failure  500     {object} app.Response
+// @Router   /User/AddUserFavoriteGoods [post]
+// @Tags     用户信息
 func AddUserFavoriteGoods(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -451,15 +451,15 @@ func AddUserFavoriteGoods(c *gin.Context) {
 }
 
 // RemoveUserFavoriteGoods 移除用户商品收藏信息
-// @Summary 移除用户商品收藏信息
-// @Produce json
+// @Summary  移除用户商品收藏信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Param goodsID query int true "商品ID"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/RemoveUserFavoriteGoods [post]
-// @Tags 用户信息
+// @Param    userID  query    int true "用户ID"
+// @Param    goodsID query    int true "商品ID"
+// @Success  200     {object} app.Response
+// @Failure  500     {object} app.Response
+// @Router   /User/RemoveUserFavoriteGoods [post]
+// @Tags     用户信息
 func RemoveUserFavoriteGoods(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -489,14 +489,14 @@ type QueryMessageBoardReq struct {
 }
 
 // QueryMessageBoard 获取用户留言板信息
-// @Summary 获取用户留言板信息
-// @Produce json
+// @Summary  获取用户留言板信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Success 200 {object} models.Messageboard
-// @Failure 500 {object} app.Response
-// @Router /User/QueryMessageBoard [get]
-// @Tags 用户信息
+// @Param    userID query    int true "用户ID"
+// @Success  200    {object} models.Messageboard
+// @Failure  500    {object} app.Response
+// @Router   /User/QueryMessageBoard [get]
+// @Tags     用户信息
 func QueryMessageBoard(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -529,16 +529,16 @@ type AddMessageBoardReq struct {
 }
 
 // AddMessageBoard 添加用户留言板信息
-// @Summary 添加用户留言板信息
-// @Produce json
+// @Summary  添加用户留言板信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Param message query string true "留言信息"
-// @Param contactNum query string true "联系电话"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/AddMessageBoard [post]
-// @Tags 用户信息
+// @Param    userID     query    int    true "用户ID"
+// @Param    message    query    string true "留言信息"
+// @Param    contactNum query    string true "联系电话"
+// @Success  200        {object} app.Response
+// @Failure  500        {object} app.Response
+// @Router   /User/AddMessageBoard [post]
+// @Tags     用户信息
 func AddMessageBoard(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -569,15 +569,15 @@ type UpdateUserAccountStatusReq struct {
 }
 
 // UpdateUserAccountStatus 更新用户状态
-// @Summary 更新用户状态
+// @Summary  更新用户状态
 // @Produce json
 // @Security ApiKeyAuth
-// @Param userID query int true "用户ID"
-// @Param accountStatus query int true "账户状态 -  4:正常 6:注销(停用)"
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /User/UpdateUserAccountStatus [post]
-// @Tags 用户信息
+// @Param    userID        query    int true "用户ID"
+// @Param    accountStatus query    int true "账户状态 -  4:正常 6:注销(停用)"
+// @Success  200           {object} app.Response
+// @Failure  500           {object} app.Response
+// @Router   /User/UpdateUserAccountStatus [post]
+// @Tags     用户信息
 func UpdateUserAccountStatus(c *gin.Context) {
 	appG := app.Gin{C: c}
 

Plik diff jest za duży
+ 372 - 372
controllers/wrTrade2/qryWrTrade.go


+ 7 - 7
controllers/wrtrade/wrTrade.go

@@ -14,14 +14,14 @@ import (
 )
 
 // GetAllDeliveryGoods 获取带仓单分类的种类信息
-// @Tags 仓单贸易
-// @Summary 获取带仓单分类的种类信息
-// @Produce json
+// @Tags     仓单贸易
+// @Summary  获取带仓单分类的种类信息
+// @Produce  json
 // @Security ApiKeyAuth
-// @Success 200 {object} app.Response
-// @Failure 500 {object} app.Response
-// @Router /WRTrade/GetAllDeliveryGoods [get]
-// @Tags 仓单贸易
+// @Success  200 {object} app.Response
+// @Failure  500 {object} app.Response
+// @Router   /WRTrade/GetAllDeliveryGoods [get]
+// @Tags     仓单贸易
 func GetAllDeliveryGoods(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 5 - 5
controllers/zj/zj.go

@@ -15,8 +15,8 @@ import (
 // @Produce json
 // @Success 200 {object} string
 // @Failure 500 {object} app.Response
-// @Router /ZJ/GetBankTip [get]
-// @Tags 中江
+// @Router  /ZJ/GetBankTip [get]
+// @Tags    中江
 func GetBankTip(c *gin.Context) {
 	appG := app.Gin{C: c}
 
@@ -35,10 +35,10 @@ func GetBankTip(c *gin.Context) {
 // GetCusBankChannels 获取中江出入金渠道显示列表
 // @Summary 获取中江出入金渠道显示列表
 // @Produce json
-// @Success 200 {array} string
+// @Success 200 {array}  string
 // @Failure 500 {object} app.Response
-// @Router /ZJ/GetCusBankChannels [get]
-// @Tags 中江
+// @Router  /ZJ/GetCusBankChannels [get]
+// @Tags    中江
 func GetCusBankChannels(c *gin.Context) {
 	appG := app.Gin{C: c}
 

+ 16 - 0
docs/docs.go

@@ -7560,6 +7560,12 @@ const docTemplate = `{
                 "security": [
                     {
                         "ApiKeyAuth": []
+                    },
+                    {
+                        "LoginID": []
+                    },
+                    {
+                        "Group": []
                     }
                 ],
                 "produces": [
@@ -46217,6 +46223,16 @@ const docTemplate = `{
             "type": "apiKey",
             "name": "Authorization",
             "in": "header"
+        },
+        "Group": {
+            "type": "apiKey",
+            "name": "Group",
+            "in": "header"
+        },
+        "LoginID": {
+            "type": "apiKey",
+            "name": "LoginID",
+            "in": "header"
         }
     }
 }`

+ 16 - 0
docs/swagger.json

@@ -7551,6 +7551,12 @@
                 "security": [
                     {
                         "ApiKeyAuth": []
+                    },
+                    {
+                        "LoginID": []
+                    },
+                    {
+                        "Group": []
                     }
                 ],
                 "produces": [
@@ -46208,6 +46214,16 @@
             "type": "apiKey",
             "name": "Authorization",
             "in": "header"
+        },
+        "Group": {
+            "type": "apiKey",
+            "name": "Group",
+            "in": "header"
+        },
+        "LoginID": {
+            "type": "apiKey",
+            "name": "LoginID",
+            "in": "header"
         }
     }
 }

+ 10 - 0
docs/swagger.yaml

@@ -27086,6 +27086,8 @@ paths:
             $ref: '#/definitions/app.Response'
       security:
       - ApiKeyAuth: []
+      - LoginID: []
+      - Group: []
       summary: 钻石搜索
       tags:
       - 广钻
@@ -32638,4 +32640,12 @@ securityDefinitions:
     in: header
     name: Authorization
     type: apiKey
+  Group:
+    in: header
+    name: Group
+    type: apiKey
+  LoginID:
+    in: header
+    name: LoginID
+    type: apiKey
 swagger: "2.0"

+ 15 - 7
main.go

@@ -21,16 +21,24 @@ import (
 	_ "github.com/mattn/go-oci8"
 )
 
-// @title MTP2.0 查询服务 API
-// @version 1.0
-// @description 新的查询服务,替代原通用查询服务。游客Token:c886a057f3d820d4dbc41473686c7c2d
-// @termsOfService http://www.muchinfo.cn
+// @title                      MTP2.0 查询服务 API
+// @version                    1.0
+// @description                新的查询服务,替代原通用查询服务。游客Token:c886a057f3d820d4dbc41473686c7c2d
+// @termsOfService             http://www.muchinfo.cn
 //
 // @securityDefinitions.apikey ApiKeyAuth
-// @in header
-// @name Authorization
+// @in                         header
+// @name                       Authorization
 //
-// @BasePath /api
+// @securityDefinitions.apikey LoginID
+// @in                         header
+// @name                       LoginID
+//
+// @securityDefinitions.apikey Group
+// @in                         header
+// @name                       Group
+//
+// @BasePath                   /api
 
 var _VERSION_ = "default"
 var _GITHASH_ = "default"

+ 0 - 0
res/MTP_IF编译配置说明(把后辍.ini去掉再打开).docx.ini → res/MTP_IF编译配置说明(把后辍.ini去掉再打开).docx


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików