文件名从 src/main/java/com/mzl/flower/web/v2/wallet/WithdrawRecordController.java 修改 |
| | |
| | | import com.mzl.flower.base.BaseController; |
| | | import com.mzl.flower.base.R; |
| | | import com.mzl.flower.base.ReturnDataDTO; |
| | | import com.mzl.flower.entity.wallet.WalletDO; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.PutMapping; |
| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import com.mzl.flower.entity.wallet.WithdrawRecordDO; |
| | | import com.mzl.flower.entity.wallet.WalletWithdrawRecordDO; |
| | | import javax.validation.constraints.Min; |
| | | import javax.validation.constraints.Max; |
| | | import javax.validation.constraints.Positive; |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/v2/withdraw-record") |
| | | public class WithdrawRecordController extends BaseController { |
| | | public class WalletWithdrawRecordController extends BaseController { |
| | | |
| | | @PostMapping("") |
| | | public ResponseEntity<ReturnDataDTO> create() { |
| | |
| | | } |
| | | |
| | | @GetMapping("/{id}") |
| | | public WithdrawRecordDO get(@PathVariable(value = "id") @Positive(message = "{id.positive}") Integer id) { |
| | | public WalletWithdrawRecordDO get(@PathVariable(value = "id") @Positive(message = "{id.positive}") Integer id) { |
| | | return null; |
| | | } |
| | | |
| | | @GetMapping("/page") |
| | | public ResponseEntity<ReturnDataDTO<Page<WithdrawRecordDO>>> page( |
| | | public ResponseEntity<ReturnDataDTO<Page<WalletWithdrawRecordDO>>> page( |
| | | @RequestParam(name = "page", required = false, defaultValue = "0") |
| | | @Min(value = 0, message = "{page.number.min}") Integer page, |
| | | @RequestParam(name = "count", required = false, defaultValue = "10") |