|
|
@@ -120,7 +120,7 @@ public class AccountTempController {
|
|
|
/**
|
|
|
* 批量导入临时账号
|
|
|
*/
|
|
|
- @PutMapping("/import")
|
|
|
+ @PostMapping("/import")
|
|
|
public Result<String> batchImport(@RequestParam(defaultValue = "1") Long goodsId, MultipartFile file) throws IOException {
|
|
|
if (goodsId == null) {
|
|
|
throw BusinessRuntimeException.getInstance("请选择对应平台");
|
|
|
@@ -170,7 +170,7 @@ public class AccountTempController {
|
|
|
/**
|
|
|
* 临时账号列表
|
|
|
*/
|
|
|
- @PutMapping("/get")
|
|
|
+ @GetMapping("/get")
|
|
|
public Result<SearchResult<Account>> get() {
|
|
|
SearchResult<Account> search = beanSearcher.search(Account.class, MapUtils.flatBuilder(request.getParameterMap()).field(Account::getType, 3).build());
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|