feat:平台账号
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.dto.StatusRefreshDTO;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.OpenApiService;
|
||||
import io.swagger.annotations.Api;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/5 18:19
|
||||
@@ -16,9 +20,12 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags = "对外接口")
|
||||
public class OpenApiController {
|
||||
|
||||
@Resource
|
||||
OpenApiService openApiService;
|
||||
|
||||
@GetMapping("/statusRefresh")
|
||||
public ResponseResult<Boolean> statusRefresh(){
|
||||
return ResponseResult.success(Boolean.TRUE);
|
||||
public ResponseResult<Boolean> statusRefresh(StatusRefreshDTO statusRefreshDTO){
|
||||
return ResponseResult.success(openApiService.statusRefresh(statusRefreshDTO));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.cool.store.controller.webb;
|
||||
|
||||
import com.cool.store.dto.ShopAccount.ShopAccountDTO;
|
||||
import com.cool.store.response.ResponseResult;
|
||||
import com.cool.store.service.ShopAccountService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Author suzhuhong
|
||||
* @Date 2025/4/8 14:52
|
||||
* @Version 1.0
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/pc/account")
|
||||
@Api(tags = "平台账号")
|
||||
@Slf4j
|
||||
public class ShopAccountController {
|
||||
|
||||
|
||||
@Resource
|
||||
ShopAccountService accountService;
|
||||
|
||||
@ApiOperation("根据门店shopId查询平台账号")
|
||||
@GetMapping("/getShopAccountByShopId")
|
||||
public ResponseResult<List<ShopAccountDTO>> getShopAccountByShopId(@RequestParam(value = "shopId", required = true) Long shopId) {
|
||||
return ResponseResult.success(accountService.getShopAccountByShopId(shopId));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user