修改打印模板

This commit is contained in:
邹宗楠
2022-07-26 17:24:41 +08:00
parent ecdb628231
commit d038f31e87
35 changed files with 2586 additions and 201 deletions

View File

@@ -0,0 +1,35 @@
package app_model
// 小程序配置
const (
WeChatAPPID = "xxx"
WeChatAPPSecret = "xxx"
)
// LoginTypeWechat 登录配置
const (
LoginTypeWechat = "wechatMin" // 微信授权登录
LoginTypePhone = "wechatPhone" // 电话登录
LoginPassword = "location" // 账号登录
)
const (
TokenHeader = "TOKEN"
TokenVer = "V2"
TokenTypeSep = "."
)
// WeChatPhoneNumberParam 微信登陆
type WeChatPhoneNumberParam struct {
EncryptedData string `json:"encrypted_data" form:"encrypted_data" binding:"required"` // 加密信息
IV string `json:"iv" form:"iv" binding:"required"` // 加密算法初始量
NickName string `json:"nick_name" form:"nick_name" binding:"required"` // 昵称
HeadUrl string `json:"head_url" form:"head_url" binding:"required"` //头像图片地址
Code string `json:"code" form:"code" binding:"required"` //code
}
type WxLoginReq struct {
Code string `json:"code" form:"code"` // 微信授权登录使用
Phone string `json:"phone" form:"phone"` // 微信和电话登录使用
Password string `json:"password" form:"password"` // 密码登录
}