Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
aa20092c31
@ -35,17 +35,6 @@ public class CampProductServiceImpl implements CampProductService {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 删除营地产品
|
|
||||||
*
|
|
||||||
* @param param
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
@Override
|
|
||||||
public ApiResult<Void> delete(IdParam param) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取营地产品详情
|
* 获取营地产品详情
|
||||||
*
|
*
|
||||||
|
|||||||
@ -0,0 +1,63 @@
|
|||||||
|
package com.wjbl.weightlosscamp.service.api.module.student.controller;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.wjbl.weightlosscamp.api.base.core.ApiResult;
|
||||||
|
import com.wjbl.weightlosscamp.api.base.core.IdParam;
|
||||||
|
import com.wjbl.weightlosscamp.api.base.core.PageParam;
|
||||||
|
import com.wjbl.weightlosscamp.service.api.module.student.dto.BalanceRefundDTO;
|
||||||
|
import com.wjbl.weightlosscamp.service.api.module.student.service.BalanceRefundService;
|
||||||
|
import io.swagger.v3.oas.annotations.Operation;
|
||||||
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资金退还信息控制器
|
||||||
|
*/
|
||||||
|
@Tag(name = "资金退还")
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("/student/balance-refund")
|
||||||
|
@RequiredArgsConstructor
|
||||||
|
@Slf4j
|
||||||
|
public class BalanceRefundController {
|
||||||
|
|
||||||
|
private BalanceRefundService balanceRefundService;
|
||||||
|
|
||||||
|
@Operation(summary = "新增资金退还")
|
||||||
|
@PostMapping("/add")
|
||||||
|
public ApiResult<Void> add(@Valid @RequestBody BalanceRefundDTO dto) {
|
||||||
|
return balanceRefundService.add(dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "编辑资金退还")
|
||||||
|
@PostMapping("/edit")
|
||||||
|
public ApiResult<Void> edit(@Valid @RequestBody BalanceRefundDTO dto) {
|
||||||
|
return balanceRefundService.edit(dto);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Operation(summary = "作废资金退还")
|
||||||
|
@PostMapping("/cancel")
|
||||||
|
public ApiResult<Void> cancel(@Valid @RequestBody IdParam param) {
|
||||||
|
return balanceRefundService.cancel(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Operation(summary = "分页查询资金退还")
|
||||||
|
@PostMapping("/list")
|
||||||
|
public ApiResult<Page<BalanceRefundDTO>> list(@Valid @RequestBody PageParam<BalanceRefundDTO> param) {
|
||||||
|
return balanceRefundService.list(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@Operation(summary = "资金退还审核回调")
|
||||||
|
@PostMapping("/audit-callback")
|
||||||
|
public ApiResult<BalanceRefundDTO> auditCallback(@Valid @RequestBody BalanceRefundDTO param) {
|
||||||
|
return balanceRefundService.auditCallback(param);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
package com.wjbl.weightlosscamp.service.api.module.student.dto;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Schema(description = "资金退还DTO")
|
||||||
|
public class BalanceRefundDTO {
|
||||||
|
}
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
package com.wjbl.weightlosscamp.service.api.module.student.service;
|
||||||
|
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
|
import com.wjbl.weightlosscamp.api.base.core.ApiResult;
|
||||||
|
import com.wjbl.weightlosscamp.api.base.core.IdParam;
|
||||||
|
import com.wjbl.weightlosscamp.api.base.core.PageParam;
|
||||||
|
import com.wjbl.weightlosscamp.service.api.module.student.dto.BalanceRefundDTO;
|
||||||
|
import jakarta.validation.Valid;
|
||||||
|
|
||||||
|
public class BalanceRefundService {
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 新增资金退还
|
||||||
|
*
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public ApiResult<Void> add(@Valid BalanceRefundDTO dto) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 编辑资金退还
|
||||||
|
*
|
||||||
|
* @param dto
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public ApiResult<Void> edit(@Valid BalanceRefundDTO dto) {
|
||||||
|
return null;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 作废资金退还
|
||||||
|
*
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
|
||||||
|
public ApiResult<Void> cancel(@Valid IdParam param) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 分页查询资金退还
|
||||||
|
*
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public ApiResult<Page<BalanceRefundDTO>> list(@Valid PageParam<BalanceRefundDTO> param) {
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 资金退还审核回调
|
||||||
|
*
|
||||||
|
* @param param
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public ApiResult<BalanceRefundDTO> auditCallback(@Valid BalanceRefundDTO param) {
|
||||||
|
return null;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user