|
|
@@ -11,11 +11,13 @@ import (
|
|
|
"github.com/gin-gonic/gin"
|
|
|
"mtp2_if/global/app"
|
|
|
"mtp2_if/models"
|
|
|
+ "mtp2_if/mtpcache"
|
|
|
)
|
|
|
|
|
|
// QryLoginUserReq
|
|
|
type QryLoginUserReq struct {
|
|
|
UserId int64 `form:"userid" binding:"required"` // 用户id
|
|
|
+ USERTYPE int32 `form:"usertype"` // 用户类型
|
|
|
QueryType int32 `form:"querytype" binding:"required"` // 查询类型 1-业务账户 2-交易账户 3-管理账户
|
|
|
}
|
|
|
|
|
|
@@ -24,6 +26,7 @@ type QryLoginUserReq struct {
|
|
|
// @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
|
|
|
@@ -33,7 +36,8 @@ func QueryAccMgrLoginUser(c *gin.Context) {
|
|
|
a := app.GinUtils{Gin: app.Gin{C: c}}
|
|
|
req := QryLoginUserReq{}
|
|
|
a.DoBindReq(&req)
|
|
|
- m := models.ErmcpLoginUser{MEMBERUSERID: req.UserId, USERID: req.UserId, QueryType: req.QueryType}
|
|
|
+ m := models.ErmcpLoginUser{USERID: mtpcache.GetAreaUserId(req.UserId, req.USERTYPE),
|
|
|
+ QueryType: req.QueryType}
|
|
|
a.DoGetDataI(&m)
|
|
|
}
|
|
|
|