add API for get and set image url for wechat

This commit is contained in:
RockYang
2023-04-27 10:45:19 +08:00
parent d2201596f6
commit 6409531ee4
5 changed files with 45 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ type Config struct {
EnableAuth bool // 是否开启鉴权
AccessKey string // 管理员访问 AccessKey, 通过传入这个参数可以访问系统管理 API
Chat Chat
ImgURL ImgURL // 各种图片资源链接地址,比如微信二维码,群二维码
}
type User struct {
@@ -48,3 +49,8 @@ type Session struct {
HttpOnly bool
SameSite http.SameSite
}
type ImgURL struct {
WechatCard string `json:"wechat_card"` // 个人微信二维码
WechatGroup string `json:"wechat_group"` // 微信群二维码
}