qryQhj.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. /**
  2. * @Author: zou.yingbin
  3. * @Create : 2021/6/1 14:59
  4. * @Modify : 2021/6/1 14:59
  5. */
  6. package qhj
  7. import (
  8. "mtp2_if/global/app"
  9. "mtp2_if/models"
  10. "mtp2_if/mtpcache"
  11. "github.com/gin-gonic/gin"
  12. )
  13. // QueryContract
  14. // @Summary 查询融资明细(合同)
  15. // @Produce json
  16. // @Security ApiKeyAuth
  17. // @Param userid query int false "用户ID"
  18. // @Param scfcontractid query int false "scf合同id"
  19. // @Success 200 {array} models.QhjContract
  20. // @Failure 500 {object} app.Response
  21. // @Router /Qhj/QueryContract [get]
  22. // @Tags 大连千海金
  23. func QueryContract(c *gin.Context) {
  24. a := app.GinUtils{Gin: app.Gin{C: c}}
  25. req := struct {
  26. USERID int64 `form:"userid"` // 用户id
  27. SCFCONTRACTID string `form:"scfcontractid"` // scf合同id
  28. }{}
  29. a.DoBindReq(&req)
  30. m := models.QhjContract{USERID: req.USERID, SCFCONTRACTID: req.SCFCONTRACTID}
  31. a.DoGetDataI(&m)
  32. }
  33. // QueryContractLog
  34. // @Summary 查询融资明细流水(融资明细详情页中的流水)
  35. // @Produce json
  36. // @Security ApiKeyAuth
  37. // @Param scfcontractid query int true "scf合同id"
  38. // @Param amounttype query string false "资金类型(逗号隔开) - 1:首付款 2:尾款 3:利息 4:追加款"
  39. // @Success 200 {array} models.QhjContractLog
  40. // @Failure 500 {object} app.Response
  41. // @Router /Qhj/QueryContractLog [get]
  42. // @Tags 大连千海金
  43. func QueryContractLog(c *gin.Context) {
  44. a := app.GinUtils{Gin: app.Gin{C: c}}
  45. req := struct {
  46. SCFCONTRACTID int64 `form:"scfcontractid" binding:"required"` // scf合同id
  47. AMOUNTTYPE string `form:"amounttype"` // 资金类型(逗号隔开) - 1:首付款2:尾款 3:利息 4:追加款
  48. }{}
  49. a.DoBindReq(&req)
  50. m := models.QhjContractLog{SCFCONTRACTID: req.SCFCONTRACTID, FilterType: req.AMOUNTTYPE}
  51. a.DoGetDataI(&m)
  52. }
  53. // QueryRStrategy
  54. // @Summary 查询定投设置(我的定投/历史定投[状态=已终止])
  55. // @Produce json
  56. // @Security ApiKeyAuth
  57. // @Param userid query int false "用户ID"
  58. // @Param goodsid query int false "商品id"
  59. // @Param status query string false "策略状态(可多选,逗号隔开) - 1:正常 2:暂停 3:终止"
  60. // @Param filtername query string false "名称(模糊搜索账户)"
  61. // @Success 200 {array} models.QhjRStrategy
  62. // @Failure 500 {object} app.Response
  63. // @Router /Qhj/QueryRStrategy [get]
  64. // @Tags 大连千海金
  65. func QueryRStrategy(c *gin.Context) {
  66. a := app.GinUtils{Gin: app.Gin{C: c}}
  67. req := struct {
  68. USERID int64 `form:"userid"` // 用户id
  69. STATUS string `form:"status"` // 状态
  70. GOODSID int32 `form:"goodsid"`
  71. FILTERNAME string `form:"filtername"`
  72. }{}
  73. a.DoBindReq(&req)
  74. m := models.QhjRStrategy{USERID: req.USERID, FilterStatus: req.STATUS,
  75. GOODSID: req.GOODSID, FilterName: req.FILTERNAME}
  76. a.DoGetDataI(&m)
  77. }
  78. // QueryRSTriggerLog
  79. // @Summary 查询定投记录(定投管理/详情/定投记录)
  80. // @Produce json
  81. // @Security ApiKeyAuth
  82. // @Param userid query int false "用户ID"
  83. // @Param regularlystrategyid query int false "定投策略id"
  84. // @Param goodsid query int false "商品id"
  85. // @Param begindate query string false "开始交易日(yyyymmdd)"
  86. // @Param enddate query string false "结束交易日(yyyymmdd)"
  87. // @Param filtername query string false "名称(模糊搜索账户)"
  88. // @Success 200 {array} models.QhjRSTriggerLog
  89. // @Failure 500 {object} app.Response
  90. // @Router /Qhj/QueryRSTriggerLog [get]
  91. // @Tags 大连千海金
  92. func QueryRSTriggerLog(c *gin.Context) {
  93. a := app.GinUtils{Gin: app.Gin{C: c}}
  94. req := struct {
  95. USERID int64 `form:"userid"` // 用户id
  96. REGULARLYSTRATEGYID int64 `form:"regularlystrategyid"` // 策略id
  97. GOODSID int32 `form:"goodsid"`
  98. BEGINDATE string `form:"begindate"`
  99. ENDDATE string `form:"enddate"`
  100. FILTERNAME string `form:"filtername"`
  101. }{}
  102. a.DoBindReq(&req)
  103. m := models.QhjRSTriggerLog{USERID: req.USERID, REGULARLYSTRATEGYID: req.REGULARLYSTRATEGYID,
  104. GOODSID: req.GOODSID, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE, FilterName: req.FILTERNAME}
  105. a.DoGetDataI(&m)
  106. }
  107. // QueryUserReceiveInfo
  108. // @Summary 查询收货地址信息
  109. // @Produce json
  110. // @Security ApiKeyAuth
  111. // @Param userid query int true "用户ID"
  112. // @Success 200 {array} models.UserReceiveInfo
  113. // @Failure 500 {object} app.Response
  114. // @Router /Qhj/QueryUserReceiveInfo [get]
  115. // @Tags 大连千海金
  116. func QueryUserReceiveInfo(c *gin.Context) {
  117. a := app.GinUtils{Gin: app.Gin{C: c}}
  118. req := struct {
  119. USERID int64 `form:"userid" binding:"required"` // 用户id
  120. }{}
  121. a.DoBindReq(&req)
  122. m := models.UserReceiveInfo{USERID: req.USERID}
  123. a.DoGetDataI(&m)
  124. }
  125. // QueryUserCollectConfig
  126. // @Summary 查询提现账户设置
  127. // @Produce json
  128. // @Security ApiKeyAuth
  129. // @Param userid query int true "用户ID"
  130. // @Success 200 {array} models.UserCollectConfig
  131. // @Failure 500 {object} app.Response
  132. // @Router /Qhj/QueryUserCollectConfig [get]
  133. // @Tags 大连千海金
  134. func QueryUserCollectConfig(c *gin.Context) {
  135. a := app.GinUtils{Gin: app.Gin{C: c}}
  136. req := struct {
  137. USERID int64 `form:"userid" binding:"required"` // 用户id
  138. }{}
  139. a.DoBindReq(&req)
  140. m := models.UserCollectConfig{USERID: mtpcache.GetAreaUserId(req.USERID, 0)}
  141. a.DoGetDataI(&m)
  142. }
  143. // QueryTradeGoodsPickup
  144. // @Summary 查询提货
  145. // @Produce json
  146. // @Security ApiKeyAuth
  147. // @Param userid query int true "用户ID"
  148. // @Param takeorderstatus query int false "提货状态 1:备货中 2:待取货(自提) 3:已取货(自提) 4:待收货(邮寄) 5:已收货(邮寄) 6:自动收货(邮寄) 7:已拒绝 8:已撤销"
  149. // @Success 200 {array} models.QhjTradeGoodsPickup
  150. // @Failure 500 {object} app.Response
  151. // @Router /Qhj/QueryTradeGoodsPickup [get]
  152. // @Tags 大连千海金
  153. func QueryTradeGoodsPickup(c *gin.Context) {
  154. a := app.GinUtils{Gin: app.Gin{C: c}}
  155. req := struct {
  156. USERID int64 `form:"userid" binding:"required"` // 用户id
  157. TAKEORDERSTATUS int32 `form:"takeorderstatus"` // 状态
  158. }{}
  159. a.DoBindReq(&req)
  160. m := models.QhjTradeGoodsPickup{USERID: req.USERID, TAKEORDERSTATUS: req.TAKEORDERSTATUS}
  161. a.DoGetDataI(&m)
  162. }
  163. // QueryPickGoods
  164. // @Summary 查询提货商品
  165. // @Produce json
  166. // @Security ApiKeyAuth
  167. // @param goodsid query int true "交易商品id"
  168. // @Param status query string false "状态(可多选,逗号隔开) - 1:正常 2:停用 3:注销"
  169. // @Success 200 {array} models.QhjPickGoods
  170. // @Failure 500 {object} app.Response
  171. // @Router /Qhj/QueryPickGoods [get]
  172. // @Tags 大连千海金
  173. func QueryPickGoods(c *gin.Context) {
  174. a := app.GinUtils{Gin: app.Gin{C: c}}
  175. req := struct {
  176. GOODSID int32 `form:"goodsid" binding:"required"` // 商品id
  177. STATUS string `form:"status"` // 用户id
  178. }{}
  179. a.DoBindReq(&req)
  180. m := models.QhjPickGoods{GOODSID: req.GOODSID, FilterStatus: req.STATUS}
  181. a.DoGetDataI(&m)
  182. }
  183. // QueryPickArea
  184. // @Summary 查询提货门店
  185. // @Produce json
  186. // @Security ApiKeyAuth
  187. // @Param userid query int false "用户ID"
  188. // @Success 200 {array} models.QhjPickArea
  189. // @Failure 500 {object} app.Response
  190. // @Router /Qhj/QueryPickArea [get]
  191. // @Tags 大连千海金
  192. func QueryPickArea(c *gin.Context) {
  193. a := app.GinUtils{Gin: app.Gin{C: c}}
  194. req := struct {
  195. USERID int64 `form:"userid"` // 用户id
  196. }{}
  197. a.DoBindReq(&req)
  198. m := models.QhjPickArea{USERID: req.USERID}
  199. a.DoGetDataI(&m)
  200. }
  201. // QueryBankAccountSign
  202. // @Summary 查询签约银行信息(提现账户管理)
  203. // @Produce json
  204. // @Security ApiKeyAuth
  205. // @Param userid query int true "用户ID"
  206. // @Success 200 {array} models.QhjBankAccountSign
  207. // @Failure 500 {object} app.Response
  208. // @Router /Qhj/QueryBankAccountSign [get]
  209. // @Tags 大连千海金
  210. func QueryBankAccountSign(c *gin.Context) {
  211. a := app.GinUtils{Gin: app.Gin{C: c}}
  212. req := struct {
  213. USERID int64 `form:"userid" binding:"required"` // 用户id
  214. }{}
  215. a.DoBindReq(&req)
  216. m := models.QhjBankAccountSign{RELATEDUSERID: req.USERID}
  217. a.DoGetDataI(&m)
  218. }
  219. // QueryBankInfo
  220. // @Summary 查询开户行
  221. // @Produce json
  222. // @Security ApiKeyAuth
  223. // @Success 200 {array} models.QhjBankInfo
  224. // @Failure 500 {object} app.Response
  225. // @Router /Qhj/QueryBankInfo [get]
  226. // @Tags 大连千海金
  227. func QueryBankInfo(c *gin.Context) {
  228. a := app.GinUtils{Gin: app.Gin{C: c}}
  229. m := models.QhjBankInfo{}
  230. a.DoGetDataI(&m)
  231. }
  232. // QueryReckonPriceLog
  233. // @Summary 查询定投价(结算价)
  234. // @Produce json
  235. // @Security ApiKeyAuth
  236. // @Param goodsid query int false "商品ID"
  237. // @Param tradedate query string false "交易日 格式(yyyymmdd)"
  238. // @Success 200 {array} models.QhjReckonPriceLog
  239. // @Failure 500 {object} app.Response
  240. // @Router /Qhj/QueryReckonPriceLog [get]
  241. // @Tags 大连千海金
  242. func QueryReckonPriceLog(c *gin.Context) {
  243. a := app.GinUtils{Gin: app.Gin{C: c}}
  244. m := models.QhjReckonPriceLog{}
  245. a.DoBindReq(&m)
  246. a.DoGetDataI(&m)
  247. }
  248. // QueryCustomerInfo
  249. // @Summary 查询客户资料
  250. // @Produce json
  251. // @Security ApiKeyAuth
  252. // @Param userid query int true "用户ID"
  253. // @Param querytype query int true "查询类型 1:未提交(网上开户表) 2:待审核(网上开户表) 3:正常 4:停用"
  254. // @Param userinfotype query int false "客户类型 1-个人 2-企业"
  255. // @Param customername query string false "客户名称(模糊匹配)"
  256. // @Param nickname query string false "昵称(模糊匹配)"
  257. // @Param includesub query int false "是否包含子级 1-包含"
  258. // @Success 200 {array} models.QhjCustomer
  259. // @Failure 500 {object} app.Response
  260. // @Router /Qhj/QueryCustomerInfo [get]
  261. // @Tags 大连千海金
  262. func QueryCustomerInfo(c *gin.Context) {
  263. a := app.GinUtils{Gin: app.Gin{C: c}}
  264. req := struct {
  265. USERID int64 `form:"userid" binding:"required"` // 用户id
  266. QUERYTYPE int32 `form:"querytype" binding:"required,min=1,max=4"` // 查询类型
  267. USERINFOTYPE int32 `form:"userinfotype"` // 客户类型
  268. CUSTOMERNAME string `form:"customername"` // 客户名称
  269. NICKNAME string `form:"nickname"` // 昵称
  270. INCLUDESUB int32 `form:"includesub"` // 是否包含子级
  271. }{}
  272. a.DoBindReq(&req)
  273. m := models.QhjCustomer{USERID: req.USERID, USERINFOTYPE: req.USERINFOTYPE, QUERYTYPE: req.QUERYTYPE,
  274. CUSTOMERNAME: req.CUSTOMERNAME, NICKNAME: req.NICKNAME, IncludeSub: req.INCLUDESUB}
  275. a.DoGetDataI(&m)
  276. }
  277. // QueryCusBankSignBank
  278. // @Summary 查询托管银行
  279. // @Produce json
  280. // @Security ApiKeyAuth
  281. // @Success 200 {array} models.QhjCusBankSignBankEx
  282. // @Failure 500 {object} app.Response
  283. // @Router /Qhj/QueryCusBankSignBank [get]
  284. // @Tags 大连千海金
  285. func QueryCusBankSignBank(c *gin.Context) {
  286. a := app.GinUtils{Gin: app.Gin{C: c}}
  287. m := models.QhjCusBankSignBankEx{}
  288. a.DoGetDataI(&m)
  289. }
  290. // QuerySiteColumnDetail
  291. // @Summary 查询资讯
  292. // @Produce json
  293. // @Security ApiKeyAuth
  294. // @Param userid query int true "用户ID"
  295. // @Success 200 {array} models.QhjSiteColumnDetail
  296. // @Failure 500 {object} app.Response
  297. // @Router /Qhj/QuerySiteColumnDetail [get]
  298. // @Tags 大连千海金
  299. func QuerySiteColumnDetail(c *gin.Context) {
  300. a := app.GinUtils{Gin: app.Gin{C: c}}
  301. req := struct {
  302. USERID int64 `form:"userid"` // 用户id
  303. }{}
  304. a.DoBindReq(&req)
  305. m := models.QhjSiteColumnDetail{USERID: mtpcache.GetAreaUserId(req.USERID, 0)}
  306. a.DoGetDataI(&m)
  307. }
  308. // QueryAccountInOutApply
  309. // @Summary 查询充值提现
  310. // @Produce json
  311. // @Security ApiKeyAuth
  312. // @Param userid query int true "用户ID"
  313. // @Param begindate query string false "申请起始日期(格式yyyymmdd)"
  314. // @Param enddate query string false "申请截止日期(格式yyyymmdd)"
  315. // @Param likename query string false "模糊搜索名称"
  316. // @Success 200 {array} models.QhjAccountOutInApply
  317. // @Failure 500 {object} app.Response
  318. // @Router /Qhj/QueryAccountInOutApply [get]
  319. // @Tags 大连千海金
  320. func QueryAccountInOutApply(c *gin.Context) {
  321. a := app.GinUtils{Gin: app.Gin{C: c}}
  322. req := struct {
  323. USERID int64 `form:"userid"` // 用户id
  324. BEGINDATE string `form:"begindate"` // 开始申请日期
  325. ENDDATE string `form:"enddate"` // 结束申请日期
  326. LIKENAME string `form:"likename"` // 模糊搜索名称
  327. }{}
  328. a.DoBindReq(&req)
  329. a.CheckParamF(func() bool {
  330. if len(req.BEGINDATE) > 0 && len(req.BEGINDATE) != 8 {
  331. return false
  332. }
  333. if len(req.ENDDATE) > 0 && len(req.ENDDATE) != 8 {
  334. return false
  335. }
  336. for i := range req.BEGINDATE {
  337. if req.BEGINDATE[i] < '0' || req.BEGINDATE[i] > '9' {
  338. return false
  339. }
  340. }
  341. for i := range req.ENDDATE {
  342. if req.ENDDATE[i] < '0' || req.ENDDATE[i] > '9' {
  343. return false
  344. }
  345. }
  346. return true
  347. })
  348. m := models.QhjAccountOutInApply{USERID: req.USERID, BeginDate: req.BEGINDATE, EndDate: req.ENDDATE, FilterName: req.LIKENAME}
  349. a.DoGetDataI(&m)
  350. }
  351. // QueryPayOrder
  352. // @Summary 查询待付款单据
  353. // @Produce json
  354. // @Security ApiKeyAuth
  355. // @Param accountid query int true "资金账号id"
  356. // @Param tradeid query int false "成交单号"
  357. // @Param payflag query string false "付款标识(可多个,逗号隔开) - 1:未支付 2:已支付 3:已过期 4:已撤销 5:结算过期 6:预售终止"
  358. // @Success 200 {array} models.QhjPayOrder
  359. // @Failure 500 {object} app.Response
  360. // @Router /Qhj/QueryPayOrder [get]
  361. // @Tags 大连千海金
  362. func QueryPayOrder(c *gin.Context) {
  363. a := app.GinUtils{Gin: app.Gin{C: c}}
  364. req := struct {
  365. ACCOUNTID int64 `form:"accountid" binding:"required"` // 用户id
  366. TRADEID string `form:"tradeid"` // 成交单号
  367. PAYFLAG string `form:"payflag"` // 付款标识
  368. }{}
  369. a.DoBindReq(&req)
  370. m := models.QhjPayOrder{BUYACCOUNTID: req.ACCOUNTID, TRADEID: req.TRADEID, FilterPayFlag: req.PAYFLAG}
  371. a.DoGetDataI(&m)
  372. }
  373. // QueryGoodsEx
  374. // @Summary 交易商品扩展表
  375. // @Produce json
  376. // @Security ApiKeyAuth
  377. // @Param goodsid query int false "商品id"
  378. // @Success 200 {array} models.Qhjgoodsex
  379. // @Failure 500 {object} app.Response
  380. // @Router /Qhj/QueryGoodsEx [get]
  381. // @Tags 大连千海金
  382. func QueryGoodsEx(c *gin.Context) {
  383. a := app.GinUtils{Gin: app.Gin{C: c}}
  384. req := struct {
  385. GOODSID int `form:"goodsid"` // 商品id
  386. }{}
  387. a.DoBindReq(&req)
  388. m := models.Qhjgoodsex{Goodsid: int32(req.GOODSID)}
  389. a.DoGetDataI(&m)
  390. }
  391. // QueryParentAreaList
  392. // @Summary 查询所属机构列表
  393. // @Produce json
  394. // @Security ApiKeyAuth
  395. // @Param userid query int true "用户ID"
  396. // @Success 200 {array} models.QhjParentAreaList
  397. // @Failure 500 {object} app.Response
  398. // @Router /Qhj/QueryParentAreaList [get]
  399. // @Tags 大连千海金
  400. func QueryParentAreaList(c *gin.Context) {
  401. a := app.GinUtils{Gin: app.Gin{C: c}}
  402. req := struct {
  403. USERID int64 `form:"userid" binding:"required"` // 用户id
  404. }{}
  405. a.DoBindReq(&req)
  406. m := models.QhjParentAreaList{USERID: mtpcache.GetAreaUserId(req.USERID, 0)}
  407. a.DoGetDataI(&m)
  408. }
  409. // QueryAreaFinanceConfig
  410. // @Summary 查询企业配置表
  411. // @Produce json
  412. // @Security ApiKeyAuth
  413. // @Param userid query int false "机构用户ID 其他做市关系,都设置为 1"
  414. // @Success 200 {array} models.QhjAreaFinanceConfig
  415. // @Failure 500 {object} app.Response
  416. // @Router /Qhj/QueryAreaFinanceConfig [get]
  417. // @Tags 大连千海金
  418. func QueryAreaFinanceConfig(c *gin.Context) {
  419. a := app.GinUtils{Gin: app.Gin{C: c}}
  420. m := models.QhjAreaFinanceConfig{}
  421. a.DoBindReq(&m)
  422. a.DoGetDataI(&m)
  423. }
  424. // QueryMyTeam
  425. // @Summary 查询我的团队
  426. // @Produce json
  427. // @Security ApiKeyAuth
  428. // @Param userid query int true "用户ID"
  429. // @Success 200 {array} models.QhjMyTeamEx
  430. // @Failure 500 {object} app.Response
  431. // @Router /Qhj/QueryMyTeam [get]
  432. // @Tags 大连千海金
  433. func QueryMyTeam(c *gin.Context) {
  434. a := app.GinUtils{Gin: app.Gin{C: c}}
  435. req := struct {
  436. USERID int64 `form:"userid" binding:"required"` // 用户id
  437. }{}
  438. a.DoBindReq(&req)
  439. m := models.QhjMyTeam{USERID: req.USERID}
  440. a.DoGetDataI(&m)
  441. }
  442. // QueryTeamOrder
  443. // @Summary 查询团队订单(我的团队/团队订单)
  444. // @Produce json
  445. // @Security ApiKeyAuth
  446. // @Param page query int false "页码"
  447. // @Param pagesize query int false "每页条数"
  448. // @Param userid query int true "用户ID"
  449. // @Param trademode query int false "交易模式"
  450. // @Param filtername query string false "名称(模糊搜索账户)"
  451. // @Success 200 {array} models.QhjTeamOrder
  452. // @Failure 500 {object} app.Response
  453. // @Router /Qhj/QueryMyTeamOrder [get]
  454. // @Tags 大连千海金
  455. func QueryTeamOrder(c *gin.Context) {
  456. a := app.GinUtils{Gin: app.Gin{C: c}}
  457. m := models.QhjTeamOrder{}
  458. a.DoBindReq(&m)
  459. a.DoGetDataByPage(&m)
  460. }
  461. // QueryBrokerRewardLog
  462. // @Summary 查询奖励流水(我的奖励)
  463. // @Produce json
  464. // @Security ApiKeyAuth
  465. // @Param userid query int true "用户ID"
  466. // @Param begindate query string false "开始交易日(yyyymmdd)"
  467. // @Param enddate query string false "结束交易日(yyyymmdd)"
  468. // @Success 200 {array} models.QhjBrokerRewardLog
  469. // @Failure 500 {object} app.Response
  470. // @Router /Qhj/QueryBrokerRewardLog [get]
  471. // @Tags 大连千海金
  472. func QueryBrokerRewardLog(c *gin.Context) {
  473. a := app.GinUtils{Gin: app.Gin{C: c}}
  474. m := models.QhjBrokerRewardLog{}
  475. a.DoBindReq(&m)
  476. a.DoGetDataI(&m)
  477. }
  478. // QueryScoreLog
  479. // @Summary 查询积分流水(我的积分)
  480. // @Produce json
  481. // @Security ApiKeyAuth
  482. // @Param userid query int true "用户ID"
  483. // @Param begindate query string false "开始交易日(yyyymmdd)"
  484. // @Param enddate query string false "结束交易日(yyyymmdd)"
  485. // @Param lastnum query int false "最近多少条"
  486. // @Success 200 {array} models.QhjScoreLog
  487. // @Failure 500 {object} app.Response
  488. // @Router /Qhj/QueryScoreLog [get]
  489. // @Tags 大连千海金
  490. func QueryScoreLog(c *gin.Context) {
  491. a := app.GinUtils{Gin: app.Gin{C: c}}
  492. m := models.QhjScoreLog{}
  493. a.DoBindReq(&m)
  494. a.DoGetDataI(&m)
  495. }
  496. // QueryBrokerApply
  497. // @Summary 查询经纪人申请
  498. // @Produce json
  499. // @Security ApiKeyAuth
  500. // @Param userid query int false "所属机构ID"
  501. // @Param filterstatus query string false "状态 1:待审核 2:审核通过 3:审核拒绝 4:处理失败 5:已撤回"
  502. // @Success 200 {array} models.QhjBrokerApply
  503. // @Failure 500 {object} app.Response
  504. // @Router /Qhj/QueryBrokerApply [get]
  505. // @Tags 大连千海金
  506. func QueryBrokerApply(c *gin.Context) {
  507. a := app.GinUtils{Gin: app.Gin{C: c}}
  508. m := models.QhjBrokerApply{}
  509. a.DoBindReq(&m)
  510. a.DoGetDataI(&m)
  511. }
  512. // QueryBrokerApplyEx
  513. // @Summary 查询经纪人信息和申请记录
  514. // @Produce json
  515. // @Security ApiKeyAuth
  516. // @Param userid query int false "所属机构ID"
  517. // @Success 200 {array} models.QhjBrokerApplyEx
  518. // @Failure 500 {object} app.Response
  519. // @Router /Qhj/QueryBrokerApplyEx [get]
  520. // @Tags 大连千海金
  521. func QueryBrokerApplyEx(c *gin.Context) {
  522. a := app.GinUtils{Gin: app.Gin{C: c}}
  523. m := models.QhjBrokerApplyEx{}
  524. a.DoBindReq(&m)
  525. a.DoGetDataI(&m)
  526. }