@@ -586,7 +586,7 @@ func UserManagementGetOneBasic(c *gin.Context) {
// @Produce json
// @param Authorization header string true "验证参数Bearer和token空格拼接"
// @Param uid query string true "用户 ID"
// @Param type query string true "粉丝类型(1.全部 2.直推 3.二代 4 .二代以后)"
// @Param type query string true "粉丝类型(0.全部 1.直推 2.二代 3 .二代以后)"
// @Param limit query string true "每页大小"
// @Param page query string true "页数"
// @Success 200 {object} md.UserManagementGetFansResp "具体数据"
@@ -608,8 +608,10 @@ func UserManagementGetFans(c *gin.Context) {
level = 1
case "2":
level = 2
default :
case "3" :
level = 3
default:
level = 0
}
relates, total, err := relateDb.PageFindUserRelateByParentUidAndLevel(utils.StrToInt64(uid), utils.StrToInt(page), utils.StrToInt(limit), level)
if err != nil {
@@ -639,7 +641,7 @@ func UserManagementGetFans(c *gin.Context) {
//3. 查询可提现余额
walletDb := implement.NewUserWalletDb(db.Db)
wallets, err := walletDb.FindUserWalletByParams(map[string]interface{}{
"key": uid,
"key": " uid" ,
"value": userIDs,
})
if err != nil {
@@ -672,7 +674,7 @@ func UserManagementGetFans(c *gin.Context) {
//5. 查询用户信息
userDb := implement.NewUserDb(db.Db)
users, err := userDb.UserFindByParams(map[string]interface{}{
"key": "u id",
"key": "id",
"value": userIDs,
})
if err != nil {