mirror of
				https://gitee.com/hhyykk/ipms-sjy.git
				synced 2025-11-04 12:18:42 +08:00 
			
		
		
		
	【代码优化】SYSTEM:微信小程序的订阅
This commit is contained in:
		@@ -63,16 +63,16 @@ public class AppSocialUserController {
 | 
			
		||||
 | 
			
		||||
    @PostMapping("/wxa-qrcode")
 | 
			
		||||
    @Operation(summary = "获得微信小程序码(base64 image)")
 | 
			
		||||
    public CommonResult<String> getWxaQrcode(@RequestBody @Valid AppSocialWxQrcodeReqVO reqVO) {
 | 
			
		||||
    public CommonResult<String> getWxaQrcode(@RequestBody @Valid AppSocialWxaQrcodeReqVO reqVO) {
 | 
			
		||||
        byte[] wxQrcode = socialClientApi.getWxaQrcode(BeanUtils.toBean(reqVO, SocialWxQrcodeReqDTO.class));
 | 
			
		||||
        return success(Base64.encode(wxQrcode));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @GetMapping("/get-subscribe-template-list")
 | 
			
		||||
    @Operation(summary = "获得微信小程订阅模板列表")
 | 
			
		||||
    public CommonResult<List<AppSocialWxSubscribeTemplateRespVO>> getSubscribeTemplateList() {
 | 
			
		||||
    public CommonResult<List<AppSocialWxaSubscribeTemplateRespVO>> getSubscribeTemplateList() {
 | 
			
		||||
        List<SocialWxaSubscribeTemplateRespDTO> template = socialClientApi.getWxaSubscribeTemplateList(UserTypeEnum.MEMBER.getValue());
 | 
			
		||||
        return success(BeanUtils.toBean(template, AppSocialWxSubscribeTemplateRespVO.class));
 | 
			
		||||
        return success(BeanUtils.toBean(template, AppSocialWxaSubscribeTemplateRespVO.class));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@ import lombok.Data;
 | 
			
		||||
 | 
			
		||||
@Schema(description = "用户 APP - 获得获取小程序码 Request VO")
 | 
			
		||||
@Data
 | 
			
		||||
public class AppSocialWxQrcodeReqVO {
 | 
			
		||||
public class AppSocialWxaQrcodeReqVO {
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 页面路径不能携带参数(参数请放在scene字段里)
 | 
			
		||||
@@ -5,7 +5,7 @@ import lombok.Data;
 | 
			
		||||
 | 
			
		||||
@Schema(description = "用户 APP - 获得小程序订阅模版 Response VO")
 | 
			
		||||
@Data
 | 
			
		||||
public class AppSocialWxSubscribeTemplateRespVO {
 | 
			
		||||
public class AppSocialWxaSubscribeTemplateRespVO {
 | 
			
		||||
 | 
			
		||||
    @Schema(description = "模版编号", requiredMode = Schema.RequiredMode.REQUIRED,
 | 
			
		||||
            example = "9Aw5ZV1j9xdWTFEkqCpZ7mIBbSC34khK55OtzUPl0rU")
 | 
			
		||||
		Reference in New Issue
	
	Block a user