用户统计接口

This commit is contained in:
苏尹岚
2020-09-25 09:05:38 +08:00
parent 0b0930ccd1
commit 1ff25bfa33
4 changed files with 45 additions and 44 deletions

View File

@@ -12,6 +12,7 @@ import (
"git.rosy.net.cn/jx-callback/business/jxutils/jsonerr"
"git.rosy.net.cn/jx-callback/business/model"
"git.rosy.net.cn/jx-callback/business/model/dao"
"git.rosy.net.cn/jx-callback/business/partner/purchase/jx/localjx"
"github.com/astaxie/beego"
)
@@ -533,3 +534,19 @@ func (c *User2Controller) GetUserAgreement() {
return retVal, "", err
})
}
// @Title 查询京西商城用户信息
// @Description 查询京西商城用户信息
// @Param token header string true "认证token"
// @Param keyword query string false "关键字"
// @Param offset query int false "结果起始序号以0开始缺省为0"
// @Param pageSize query int false "结果页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetJxShopUsers [get]
func (c *User2Controller) GetJxShopUsers() {
c.callGetJxShopUsers(func(params *tUser2GetJxShopUsersParams) (retVal interface{}, errCode string, err error) {
retVal, err = localjx.GetJxShopUsers(params.Ctx, params.Keyword, params.Offset, params.PageSize)
return retVal, "", err
})
}

View File

@@ -283,18 +283,3 @@ func (c *JxOrderController) TestDefend() {
return retVal, "", err
})
}
// @Title 查询京西商城用户信息
// @Description 查询京西商城用户信息
// @Param token header string true "认证token"
// @Param keyword query string false "关键字"
// @Param offset query int false "结果起始序号以0开始缺省为0"
// @Param pageSize query int false "结果页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetJxShopUsers [get]
func (c *JxOrderController) GetJxShopUsers() {
c.callGetJxShopUsers(func(params *tJxorderGetJxShopUsersParams) (retVal interface{}, errCode string, err error) {
return retVal, "", err
})
}