feat: add authorization for MidJourney function calls

This commit is contained in:
RockYang
2023-08-16 23:16:44 +08:00
parent 3525d35d15
commit 064081c771
12 changed files with 81 additions and 58 deletions

View File

@@ -10,6 +10,7 @@ type User struct {
Salt string // 密码盐
Tokens int64 // 剩余tokens
Calls int // 剩余对话次数
ImgCalls int // 剩余绘图次数
ChatConfig string `gorm:"column:chat_config_json"` // 聊天配置 json
ChatRoles string `gorm:"column:chat_roles_json"` // 聊天角色
ExpiredTime int64 // 账户到期时间