Commit a71247cb by guojuxing

域的枚举数据

parent 3060066f
......@@ -162,6 +162,11 @@
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-platform-member-base-api</artifactId>
<version>${gic-platform-member-base-api}</version>
</dependency>
<dependency>
<groupId>com.gic</groupId>
<artifactId>gic-mall-share-api</artifactId>
<version>${gic-mall-share-api}</version>
</dependency>
......
package com.gic.auth.web.controller;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import com.gic.platform.member.constant.enums.CuTypeEnum;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -119,6 +122,11 @@ public class ResourceController {
return RestResponse.success(map);
}
@RequestMapping("/get-cu-type")
public RestResponse cuTypeEnum() {
return RestResponse.success(Arrays.stream(CuTypeEnum.values()).collect(Collectors.toMap(CuTypeEnum::getType, CuTypeEnum::getDesc)));
}
@RequestMapping("/gic-shop-resource")
public RestResponse gicShopResource() {
ServiceResponse<List<ShopDTO>> serviceResponse = shopApiService.getAllShopByEnterpriseIdAndName(UserDetailUtils.getUserDetail().getEnterpriseId(), null, ShopTypeEnum.MALL_SHOP.getCode());
......
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