增加了推广码图片字段

This commit is contained in:
chen-xin-zhi 2025-05-18 11:22:51 +08:00
parent c2ef7836c7
commit 69f31ede73
13 changed files with 72 additions and 5 deletions

View File

@ -19,6 +19,7 @@ import java.io.Serializable;
"promoCodeLink",
"projectId",
"promoCodeStatus",
"promoCodeImage"
})
public class PromoCodeAddRequest implements Serializable {
@ -36,6 +37,13 @@ public class PromoCodeAddRequest implements Serializable {
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@NotBlank(message = "推广码图片不能为空")
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 项目ID
*/

View File

@ -35,6 +35,13 @@ public class PromoCodeQueryRequest extends PageRequest implements Serializable {
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@NotBlank(message = "推广码图片不能为空")
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 项目ID
*/

View File

@ -18,6 +18,7 @@ import java.io.Serializable;
"promoCodeLink",
"projectId",
"promoCodeStatus",
"promoCodeImage"
})
public class PromoCodeUpdateRequest implements Serializable {
@ -42,6 +43,13 @@ public class PromoCodeUpdateRequest implements Serializable {
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@NotBlank(message = "推广码图片不能为空")
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 项目ID
*/

View File

@ -21,6 +21,7 @@ import java.io.Serializable;
"projectName",
"projectImage",
"userId",
"promoCodeImage"
})
public class PromoCodeApplyAddRequest implements Serializable {
@ -52,6 +53,13 @@ public class PromoCodeApplyAddRequest implements Serializable {
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@NotBlank(message = "推广码图片不能为空")
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 绑定的项目名称
*/

View File

@ -48,6 +48,12 @@ public class PromoCodeApplyQueryRequest extends PageRequest implements Serializa
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 绑定的项目名称
*/

View File

@ -22,6 +22,7 @@ import java.io.Serializable;
"projectName",
"projectImage",
"userId",
"promoCodeImage"
})
public class PromoCodeApplyUpdateRequest implements Serializable {
@ -60,6 +61,13 @@ public class PromoCodeApplyUpdateRequest implements Serializable {
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@NotBlank(message = "推广码图片不能为空")
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 绑定的项目名称
*/

View File

@ -31,6 +31,11 @@ public class PromoCode implements Serializable {
*/
private String promoCodeLink;
/**
* 推广码图片
*/
private String promoCodeImage;
/**
* 项目ID
*/

View File

@ -49,6 +49,11 @@ public class PromoCodeApply implements Serializable {
*/
private String promoCodeLink;
/**
* 推广码图片
*/
private String promoCodeImage;
/**
* 绑定的项目名称
*/

View File

@ -23,19 +23,19 @@ public class ProjectNotificationVO implements Serializable {
/**
* 通知标题
*/
@Schema(description = "通知标题", example = "${field.example}")
@Schema(description = "通知标题", example = "美团省钱包-春季活动价格上调通知")
private String notificationTitle;
/**
* 通知内容
*/
@Schema(description = "通知内容", example = "${field.example}")
@Schema(description = "通知内容", example = "美团省钱包-春季活动价格上调通知美团省钱包-春季活动价格上调通知美团省钱包-春季活动价格上调通知")
private String notificationContent;
/**
* 项目ID
*/
@Schema(description = "项目ID", example = "${field.example}")
@Schema(description = "项目ID", example = "1")
private Long projectId;

View File

@ -32,6 +32,12 @@ public class PromoCodeVO implements Serializable {
@Schema(description = "推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 项目ID
*/

View File

@ -44,6 +44,12 @@ public class PromoCodeApplyVO implements Serializable {
@Schema(description = "绑定的推广码链接", example = "mp://y04CZgGkCBmIaZd")
private String promoCodeLink;
/**
* 推广码图片
*/
@Schema(description = "推广码图片", example = "http://xxx.png")
private String promoCodeImage;
/**
* 绑定的项目名称
*/

View File

@ -127,7 +127,7 @@ public class FileInfoServiceImpl extends ServiceImpl<FileInfoMapper, FileInfo>
* @param response
*/
@Override
public void downloadFile(String filename, HttpServletResponse response) throws IOException{
public void downloadFile(String filename, HttpServletResponse response) throws IOException {
ThrowUtils.throwIf(!filename.contains("-"), ErrorCode.PARAMS_ERROR);
String[] split = filename.split("-");
FileUploadBizEnum fileUploadBizEnum = FileUploadBizEnum.getEnumByValue(split[0]);

View File

@ -1,4 +1,4 @@
spring:
profiles:
active: prod
active: dev