活动优化
This commit is contained in:
parent
044b24d0ca
commit
e34aa929f3
|
@ -259,16 +259,14 @@ justauth:
|
||||||
|
|
||||||
wx:
|
wx:
|
||||||
pay:
|
pay:
|
||||||
appId: #微信公众号或者小程序等的appid
|
appId: wx2e09db4124332242
|
||||||
mchId: #微信支付商户号
|
mchId: 1646701170
|
||||||
mchKey: #微信支付商户密钥
|
mchKey: Mozhekejiyouxiangongsi6296296296
|
||||||
subAppId: #服务商模式下的子商户公众账号ID
|
keyPath: /usr/local/mental/certs
|
||||||
subMchId: #服务商模式下的子商户号
|
|
||||||
keyPath: # p12证书的位置,可以指定绝对路径,也可以指定类路径(以classpath:开头)
|
|
||||||
miniapp:
|
miniapp:
|
||||||
configs:
|
configs:
|
||||||
- appid: #微信小程序的appid
|
- appid: wx2e09db4124332242
|
||||||
secret: #微信小程序的Secret
|
secret: ca069319b37b0909e65367c802c53d29
|
||||||
token: #微信小程序消息服务器配置的token
|
token: #微信小程序消息服务器配置的token
|
||||||
aesKey: #微信小程序消息服务器配置的EncodingAESKey
|
aesKey: #微信小程序消息服务器配置的EncodingAESKey
|
||||||
msgDataFormat: JSON
|
msgDataFormat: JSON
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package org.dromara.scale.controller.wx;
|
package org.dromara.scale.controller.wx;
|
||||||
|
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
|
import org.dromara.scale.service.IActivityService;
|
||||||
import org.springframework.validation.annotation.Validated;
|
import org.springframework.validation.annotation.Validated;
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
@ -18,4 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
|
||||||
@RequestMapping("/wx/activity")
|
@RequestMapping("/wx/activity")
|
||||||
public class WxActivityController {
|
public class WxActivityController {
|
||||||
|
|
||||||
|
private final IActivityService activityService;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,12 +41,15 @@ public class ActivityBo extends BaseEntity {
|
||||||
@NotBlank(message = "活动详情不能为空", groups = { AddGroup.class, EditGroup.class })
|
@NotBlank(message = "活动详情不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private String activityDetails;
|
private String activityDetails;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 活动封面
|
||||||
|
*/
|
||||||
|
@NotNull(message = "活动封面不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||||
private Long cover;
|
private Long cover;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 浏览量
|
* 浏览量
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "浏览量不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Long viewNums;
|
private Long viewNums;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -64,7 +67,6 @@ public class ActivityBo extends BaseEntity {
|
||||||
/**
|
/**
|
||||||
* 活动状态
|
* 活动状态
|
||||||
*/
|
*/
|
||||||
@NotNull(message = "活动状态不能为空", groups = { AddGroup.class, EditGroup.class })
|
|
||||||
private Integer status;
|
private Integer status;
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue