mall + promotion:增加营销活动的 mock 接口
parent
9e894e0430
commit
4f5ac0edbb
@ -1,24 +0,0 @@
|
|||||||
package cn.iocoder.yudao.module.promotion.controller.app;
|
|
||||||
|
|
||||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
||||||
import io.swagger.v3.oas.annotations.Operation;
|
|
||||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
||||||
import org.springframework.validation.annotation.Validated;
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
||||||
|
|
||||||
@Tag(name = "用户 App - 营销")
|
|
||||||
@RestController
|
|
||||||
@RequestMapping("/market/test")
|
|
||||||
@Validated
|
|
||||||
public class AppMarketTestController {
|
|
||||||
|
|
||||||
@GetMapping("/get")
|
|
||||||
@Operation(summary = "获取 market 信息")
|
|
||||||
public CommonResult<String> get() {
|
|
||||||
return success("true");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
package cn.iocoder.yudao.module.promotion.controller.app.activity.vo;
|
||||||
|
|
||||||
|
import io.swagger.v3.oas.annotations.media.Schema;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
import java.time.LocalDateTime;
|
||||||
|
|
||||||
|
@Schema(description = "用户 App - 营销活动 Response VO")
|
||||||
|
@Data
|
||||||
|
public class AppActivityRespVO {
|
||||||
|
|
||||||
|
@Schema(description = "活动编号", required = true, example = "1024")
|
||||||
|
private Long id;
|
||||||
|
|
||||||
|
@Schema(description = "活动类型", required = true, example = "1") // 对应 PromotionTypeEnum 枚举
|
||||||
|
private Integer type;
|
||||||
|
|
||||||
|
@Schema(description = "活动名称", required = true, example = "618 大促")
|
||||||
|
private String name;
|
||||||
|
|
||||||
|
@Schema(description = "活动开始时间", required = true)
|
||||||
|
private LocalDateTime startTime;
|
||||||
|
|
||||||
|
@Schema(description = "活动结束时间", required = true)
|
||||||
|
private LocalDateTime endTime;
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue