用户统计

This commit is contained in:
苏尹岚
2020-10-12 11:49:56 +08:00
parent adf23c0831
commit 31088be645
2 changed files with 35 additions and 22 deletions

View File

@@ -539,6 +539,9 @@ func (c *User2Controller) GetUserAgreement() {
// @Description 查询京西商城用户信息
// @Param token header string true "认证token"
// @Param keyword query string false "关键字"
// @Param fromTime query string false "开始时间"
// @Param toTime query string false "结束时间"
// @Param vendorIDs query string false "平台号"
// @Param offset query int false "结果起始序号以0开始缺省为0"
// @Param pageSize query int false "结果页大小缺省为50-1表示全部"
// @Success 200 {object} controllers.CallResult
@@ -546,7 +549,10 @@ func (c *User2Controller) GetUserAgreement() {
// @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)
var vendorIDs []int
if err = jxutils.Strings2Objs(params.VendorIDs, &vendorIDs); err == nil {
retVal, err = localjx.GetJxShopUsers(params.Ctx, params.Keyword, params.FromTime, params.ToTime, vendorIDs, params.Offset, params.PageSize)
}
return retVal, "", err
})
}