feat:新管家
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.dto.content.ContentQueryDetailDto;
|
||||
import com.cool.store.dto.region.BigRegionDTO;
|
||||
import com.cool.store.entity.HyContentInfoDO;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.BigRegionService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/5/9 14:40
|
||||
* @Version 1.0
|
||||
*/
|
||||
@Api(tags = "大区相关")
|
||||
@RestController
|
||||
@RequestMapping("pc/region")
|
||||
public class BigRegionController {
|
||||
|
||||
@Resource
|
||||
BigRegionService bigRegionService;
|
||||
|
||||
@PostMapping("/queryAllBigRegion")
|
||||
@ApiOperation("获取所有可选择的大区")
|
||||
public ResponseResult<List<BigRegionDTO>> queryContentInfo(@RequestParam(required = false) String keyword) {
|
||||
return ResponseResult.success(bigRegionService.queryAllBigRegion(keyword));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -23,6 +23,7 @@ import com.cool.store.response.oppty.OpportunityDetailResponse;
|
||||
import com.cool.store.response.oppty.OpportunityInfoPageResponse;
|
||||
import com.cool.store.service.*;
|
||||
import com.cool.store.service.impl.CommonService;
|
||||
import com.cool.store.service.impl.UserAuthMappingServiceImpl;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
@@ -286,5 +287,14 @@ public class PCTestController {
|
||||
return ResponseResult.success(thirdXinGuanJiaService.getPassword(dto));
|
||||
}
|
||||
|
||||
@Resource
|
||||
UserAuthMappingServiceImpl userAuthMappingService;
|
||||
|
||||
@GetMapping("/getAuthRegionIdAndSubRegionIdByUserId")
|
||||
@ApiOperation("获取管辖的子区域")
|
||||
public ResponseResult<List<String>> getAuthRegionIdAndSubRegionIdByUserId(@RequestParam(value = "userId", required = true) String userId) {
|
||||
return ResponseResult.success(userAuthMappingService.getAuthRegionIdAndSubRegionIdByUserId(userId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -119,4 +119,6 @@ xzg.api.auth.url=http://webapi.zhengxinfood.com
|
||||
|
||||
|
||||
cool.api.appKey=k8J7fG2qR5tY9vX3
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
|
||||
special.user.id=wpayJeDAAAklx_q1jGhyGUd4yEh8vV_g_woayJeDAAAtwLSAPVMWbpGi9q4caSujg
|
||||
@@ -124,3 +124,6 @@ xzg.api.auth.url=http://webapi.zhengxinfood.com
|
||||
cool.api.appKey=k8J7fG2qR5tY9vX3
|
||||
cool.api.secret=wP4sN6dL8zK2xM9c
|
||||
|
||||
#maozhejun userID
|
||||
special.user.id=wpayJeDAAAhGIFgUJpJN-zg39JuNbYhg_woayJeDAAA0TC8mkCJeXouw94hYA-D3Q
|
||||
|
||||
|
||||
Reference in New Issue
Block a user