-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwxstruct.go
More file actions
44 lines (35 loc) · 714 Bytes
/
wxstruct.go
File metadata and controls
44 lines (35 loc) · 714 Bytes
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
package main
import "time"
type Jsapi struct {
AppID string `json:"app_id"`
Timestamp int64 `json:"timestamp"`
NonceStr string `json:"nonce_str"`
Signature string `json:"signature"`
Url string `json:"url"`
}
type Resmsg struct {
Code int `json:"code"`
Data Jsapi `json:"data"`
}
type Reserr struct{
Code int `json:"code"`
Msg string `json:"msg"`
}
type Configuration struct {
Weixin WechatConfig
Redis RedisConfig
}
type WechatConfig struct {
Appid string
Appsecret string
}
type RedisConfig struct {
Host string
Password string
}
type Todos []Todo
type Todo struct {
Name string `json:"name"`
Completed bool `json:"completed"`
Due time.Time `json:"due"`
}