---------------
This commit is contained in:
@ -121,7 +121,7 @@ public class CourseController {
|
||||
* @param commonRequest 课程id
|
||||
* @return 课程基本信息
|
||||
*/
|
||||
@PostMapping("generate/qrcode")
|
||||
@PostMapping("detail/id")
|
||||
@Operation(summary = "小程序端用户根据id查看课程基本信息", description = "参数:课程id,权限:管理员,方法名:miniQueryCourseBaseInfo")
|
||||
@RequiresPermission(mustRole = UserConstant.DEFAULT_ROLE)
|
||||
@SysLog(title = "课程管理", content = "小程序端用户根据id查看课程基本信息")
|
||||
|
@ -1,5 +1,6 @@
|
||||
package com.greenorange.promotion.model.dto.courseOrder;
|
||||
|
||||
import com.greenorange.promotion.annotation.EnumValue;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import jakarta.validation.constraints.Min;
|
||||
@ -45,53 +46,54 @@ public class CourseOrderAddRequest implements Serializable {
|
||||
* 课程名称
|
||||
*/
|
||||
@NotBlank(message = "课程名称不能为空")
|
||||
@Schema(description = "课程名称", example = "")
|
||||
@Schema(description = "课程名称", example = "数据分析工程师训练营")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 课程类别
|
||||
*/
|
||||
@NotBlank(message = "课程类别不能为空")
|
||||
@Schema(description = "课程类别", example = "")
|
||||
@Schema(description = "课程类别", example = "自媒体")
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 课程封面图片URL
|
||||
*/
|
||||
@NotBlank(message = "课程封面图片URL不能为空")
|
||||
@Schema(description = "课程封面图片URL", example = "")
|
||||
@Schema(description = "课程封面图片URL", example = "38EFJID33")
|
||||
private String image;
|
||||
|
||||
/**
|
||||
* 课程原价
|
||||
*/
|
||||
@Schema(description = "课程原价", example = "")
|
||||
@Schema(description = "课程原价", example = "20.00")
|
||||
private BigDecimal originPrice;
|
||||
|
||||
/**
|
||||
* 实际成交价格
|
||||
* 折扣价格
|
||||
*/
|
||||
@Schema(description = "实际成交价格", example = "")
|
||||
@Schema(description = "折扣价格", example = "80.00")
|
||||
private BigDecimal discountPrice;
|
||||
|
||||
/**
|
||||
* 订单总金额
|
||||
*/
|
||||
@Schema(description = "订单总金额", example = "")
|
||||
@Schema(description = "订单总金额", example = "80.00")
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
/**
|
||||
* 支付交易号
|
||||
*/
|
||||
@NotBlank(message = "支付交易号不能为空")
|
||||
@Schema(description = "支付交易号", example = "")
|
||||
@Schema(description = "支付交易号", example = "432332333324444444444444423")
|
||||
private String transactionNumber;
|
||||
|
||||
/**
|
||||
* 订单状态
|
||||
*/
|
||||
@NotBlank(message = "订单状态不能为空")
|
||||
@Schema(description = "订单状态", example = "")
|
||||
// @EnumValue(enumClass = CourseOrderStatusEnum.class)
|
||||
@Schema(description = "订单状态", example = "order")
|
||||
private String orderStatus;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user