活动优化

This commit is contained in:
cjw 2024-08-23 10:39:03 +08:00
parent 044b24d0ca
commit e34aa929f3
3 changed files with 14 additions and 10 deletions

View File

@ -259,16 +259,14 @@ justauth:
wx:
pay:
appId: #微信公众号或者小程序等的appid
mchId: #微信支付商户号
mchKey: #微信支付商户密钥
subAppId: #服务商模式下的子商户公众账号ID
subMchId: #服务商模式下的子商户号
keyPath: # p12证书的位置可以指定绝对路径也可以指定类路径以classpath:开头)
appId: wx2e09db4124332242
mchId: 1646701170
mchKey: Mozhekejiyouxiangongsi6296296296
keyPath: /usr/local/mental/certs
miniapp:
configs:
- appid: #微信小程序的appid
secret: #微信小程序的Secret
- appid: wx2e09db4124332242
secret: ca069319b37b0909e65367c802c53d29
token: #微信小程序消息服务器配置的token
aesKey: #微信小程序消息服务器配置的EncodingAESKey
msgDataFormat: JSON

View File

@ -1,6 +1,7 @@
package org.dromara.scale.controller.wx;
import lombok.RequiredArgsConstructor;
import org.dromara.scale.service.IActivityService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -18,4 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("/wx/activity")
public class WxActivityController {
private final IActivityService activityService;
}

View File

@ -41,12 +41,15 @@ public class ActivityBo extends BaseEntity {
@NotBlank(message = "活动详情不能为空", groups = { AddGroup.class, EditGroup.class })
private String activityDetails;
/**
* 活动封面
*/
@NotNull(message = "活动封面不能为空", groups = { AddGroup.class, EditGroup.class })
private Long cover;
/**
* 浏览量
*/
@NotNull(message = "浏览量不能为空", groups = { AddGroup.class, EditGroup.class })
private Long viewNums;
/**
@ -64,7 +67,6 @@ public class ActivityBo extends BaseEntity {
/**
* 活动状态
*/
@NotNull(message = "活动状态不能为空", groups = { AddGroup.class, EditGroup.class })
private Integer status;