yangys
2024-04-05 84dea9976c29ac938fa018b8566c71461b056418
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
package com.qianwen.core.notify.provider.wechat.mini;
 
import java.util.List;
import java.util.Properties;
import javax.validation.constraints.NotBlank;
import com.qianwen.core.notify.template.Template;
 
/* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/wechat/mini/WechatMiniMessageTemplate.class */
public class WechatMiniMessageTemplate implements Template {
    @NotBlank(message = "[templateId]模板Id不能为空")
    private String templateId;
    private String page;
    private String miniprogramState = "formal";
    private List<ConfigProperty> properties;
 
    public void setTemplateId(final String templateId) {
        this.templateId = templateId;
    }
 
    public void setPage(final String page) {
        this.page = page;
    }
 
    public void setMiniprogramState(final String miniprogramState) {
        this.miniprogramState = miniprogramState;
    }
 
    public void setProperties(final List<ConfigProperty> properties) {
        this.properties = properties;
    }
 
    public String getTemplateId() {
        return this.templateId;
    }
 
    public String getPage() {
        return this.page;
    }
 
    public String getMiniprogramState() {
        return this.miniprogramState;
    }
 
    public List<ConfigProperty> getProperties() {
        return this.properties;
    }
 
    /* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/provider/wechat/mini/WechatMiniMessageTemplate$ConfigProperty.class */
    public static class ConfigProperty {
        private String name;
        private String value;
        private String description;
 
        public void setName(final String name) {
            this.name = name;
        }
 
        public void setValue(final String value) {
            this.value = value;
        }
 
        public void setDescription(final String description) {
            this.description = description;
        }
 
        public String getName() {
            return this.name;
        }
 
        public String getValue() {
            return this.value;
        }
 
        public String getDescription() {
            return this.description;
        }
    }
 
    public Properties createJavaMailProperties() {
        Properties properties = new Properties();
        if (this.properties != null) {
            for (ConfigProperty property : this.properties) {
                properties.put(property.getName(), property.getValue());
            }
        }
        return properties;
    }
}