-
Notifications
You must be signed in to change notification settings - Fork 146
/
responseApprovalTemplate.go
56 lines (45 loc) · 1.18 KB
/
responseApprovalTemplate.go
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
package response
import (
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/power"
"github.com/ArtisanCloud/PowerWeChat/v3/src/kernel/response"
)
type Title struct {
Text string `json:"text"`
Lang string `json:"lang"`
}
type Placeholder struct {
Text string `json:"text"`
Lang string `json:"lang"`
}
type Property struct {
Control string `json:"control"`
ID string `json:"id"`
Title []*Title `json:"title"`
Placeholder []*Placeholder `json:"placeholder"`
Require int `json:"require"`
UnPrint int `json:"un_print"`
}
type Value struct {
Text string `json:"text"`
Lang string `json:"lang"`
}
type Option struct {
Key string `json:"key"`
Value []*Value `json:"value"`
}
type Control struct {
Property *Property `json:"property"`
Config *power.HashMap `json:"config"`
}
type TemplateContent struct {
Controls []Control `json:"controls"`
}
type TemplateName struct {
Text string `json:"text"`
Lang string `json:"lang"`
}
type ResponseApprovalTemplate struct {
response.ResponseWork
TemplateNames []*TemplateName `json:"template_names"`
TemplateContent *TemplateContent `json:"template_content"`
}