Commit 78cc6a16 authored by zp's avatar zp

导入

parent 53016baf
package com.tanpu.fund.api; package com.tanpu.fund.api;
import com.tanpu.common.auth.mapping.TanpuInterfaceLoginAuth;
import com.tanpu.common.model.Page; import com.tanpu.common.model.Page;
import com.tanpu.common.model.Pageable; import com.tanpu.common.model.Pageable;
import com.tanpu.common.model.adm.req.IfaNetImportReq; import com.tanpu.common.model.adm.req.IfaNetImportReq;
...@@ -14,13 +13,13 @@ import com.tanpu.common.resp.CommonResp; ...@@ -14,13 +13,13 @@ import com.tanpu.common.resp.CommonResp;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam; import io.swagger.annotations.ApiParam;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.validation.Valid;
import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotEmpty;
import java.util.List; import java.util.List;
...@@ -169,9 +168,9 @@ public interface ProductApi { ...@@ -169,9 +168,9 @@ public interface ProductApi {
@ApiOperation("理财师净值导入") @ApiOperation("理财师净值导入")
@GetMapping("/ifa/net/import") @GetMapping("/ifa/net/import")
CommonResp<List<FundNavMessage>> importNetInfo(@RequestParam("file") MultipartFile file, CommonResp<List<FundNavMessage>> importNetInfo(@RequestParam("file") MultipartFile file,
@RequestParam("fundId") @Validated @NotEmpty String fundId); @RequestParam("fundId") @Valid @NotEmpty(message = "请先确定需要导入的基金") String fundId);
@ApiOperation("理财师净值导入") @ApiOperation("理财师净值导入")
@PostMapping("/ifa/net/import/check/save") @PostMapping("/ifa/net/import/check/save")
CommonResp<List<FundNavMessage>> importNetCheckSaveInfo(@RequestBody IfaNetImportReq req); CommonResp<List<FundNavMessage>> importNetCheckSaveInfo(@RequestBody @Valid @NotEmpty(message = "请确定需要修改的信息") IfaNetImportReq req);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment