zoujiajian 1 год назад
Родитель
Сommit
380d7b3127

+ 2 - 2
netflix-web/src/main/java/com/cyksj/web/controller/manage/account/AccountTempController.java

@@ -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);