Commit 2ae36bd4 by guojuxing

商品资源获取接口

parent 0549f295
......@@ -12,7 +12,7 @@ public class GoodsResourceDTO implements Serializable{
private static final long serialVersionUID = 1952598117730776461L;
/**
* 商品资源选择器ID
* 商品资源选择器ID,可能为空(前端没有给值)
*/
private Long goodsResourceId;
......
......@@ -2,10 +2,7 @@ package com.gic.auth.service;
import com.gic.api.base.commons.Page;
import com.gic.api.base.commons.ServiceResponse;
import com.gic.auth.dto.CustomUserAreaDTO;
import com.gic.auth.dto.ResourceGroupDTO;
import com.gic.auth.dto.ResourceGroupDataDTO;
import com.gic.auth.dto.StoreResourceDTO;
import com.gic.auth.dto.*;
import java.util.List;
......@@ -103,4 +100,11 @@ public interface ResourceGroupApiService {
* @return
*/
ServiceResponse<CustomUserAreaDTO> getCustomUserByUserId(Integer userId);
/**
* 管理员的商品资源
* @param userId
* @return
*/
ServiceResponse<GoodsResourceDTO> getGoodsResourceByUserId(Integer userId);
}
......@@ -239,6 +239,11 @@ public class ResourceGroupApiServiceImpl implements ResourceGroupApiService{
return ServiceResponse.success(ResourceGroupUtils.getResource(userId, ResourceGroupUtils.CUSTOM_RESOURCE));
}
@Override
public ServiceResponse<GoodsResourceDTO> getGoodsResourceByUserId(Integer userId) {
return ServiceResponse.success(ResourceGroupUtils.getResource(userId, ResourceGroupUtils.GOODS_RESOURCE));
}
/**
* 参数验证
* @param resourceGroup
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment