feat:mini
This commit is contained in:
@@ -74,23 +74,6 @@ public class ShopAccountController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation("获取云流水免登token")
|
|
||||||
@PostMapping("/getYlsToken")
|
|
||||||
public ResponseResult<String> getYlsToken(@RequestBody @Validated GetAccessTokenDTO dto) {
|
|
||||||
return ResponseResult.success(pushService.getYlsToken(dto));
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("获取POS免登token")
|
|
||||||
@PostMapping("/getPosToken")
|
|
||||||
public ResponseResult<String> getPosToken(@RequestBody @Validated GetAccessTokenDTO dto) {
|
|
||||||
return ResponseResult.success(pushService.getPosToken(dto));
|
|
||||||
}
|
|
||||||
|
|
||||||
@ApiOperation("获取新掌柜免登token")
|
|
||||||
@PostMapping("/getXzgToken")
|
|
||||||
public ResponseResult<String> getXzgToken(@RequestBody @Validated GetAccessTokenDTO dto) {
|
|
||||||
return ResponseResult.success(pushService.getXzgToken(dto));
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,11 +1,14 @@
|
|||||||
package com.cool.store.controller.webc;
|
package com.cool.store.controller.webc;
|
||||||
|
|
||||||
|
import com.cool.store.dto.GetAccessTokenDTO;
|
||||||
import com.cool.store.dto.ModifyPasswordDTO;
|
import com.cool.store.dto.ModifyPasswordDTO;
|
||||||
import com.cool.store.dto.ShopAccount.ShopAccountDTO;
|
import com.cool.store.dto.ShopAccount.ShopAccountDTO;
|
||||||
import com.cool.store.response.ResponseResult;
|
import com.cool.store.response.ResponseResult;
|
||||||
|
import com.cool.store.service.PushService;
|
||||||
import com.cool.store.service.ShopAccountService;
|
import com.cool.store.service.ShopAccountService;
|
||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
|
|
||||||
import javax.annotation.Resource;
|
import javax.annotation.Resource;
|
||||||
@@ -25,6 +28,9 @@ public class MiniShopAccountController {
|
|||||||
@Resource
|
@Resource
|
||||||
ShopAccountService accountService;
|
ShopAccountService accountService;
|
||||||
|
|
||||||
|
@Resource
|
||||||
|
PushService pushService;
|
||||||
|
|
||||||
|
|
||||||
@ApiOperation("根据门店shopId查询平台账号")
|
@ApiOperation("根据门店shopId查询平台账号")
|
||||||
@GetMapping("/getShopAccountByShopId")
|
@GetMapping("/getShopAccountByShopId")
|
||||||
@@ -39,5 +45,23 @@ public class MiniShopAccountController {
|
|||||||
return ResponseResult.success(accountService.modifyPassword(request));
|
return ResponseResult.success(accountService.modifyPassword(request));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ApiOperation("获取云流水免登token")
|
||||||
|
@PostMapping("/getYlsToken")
|
||||||
|
public ResponseResult<String> getYlsToken(@RequestBody @Validated GetAccessTokenDTO dto) {
|
||||||
|
return ResponseResult.success(pushService.getYlsToken(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("获取POS免登token")
|
||||||
|
@PostMapping("/getPosToken")
|
||||||
|
public ResponseResult<String> getPosToken(@RequestBody @Validated GetAccessTokenDTO dto) {
|
||||||
|
return ResponseResult.success(pushService.getPosToken(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
@ApiOperation("获取新掌柜免登token")
|
||||||
|
@PostMapping("/getXzgToken")
|
||||||
|
public ResponseResult<String> getXzgToken(@RequestBody @Validated GetAccessTokenDTO dto) {
|
||||||
|
return ResponseResult.success(pushService.getXzgToken(dto));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user