perf: version subscribe logic

This commit is contained in:
zchengo
2022-12-16 20:33:18 +08:00
parent 0de2d05d9d
commit 7d3c1e21e9
3 changed files with 25 additions and 56 deletions
+2 -12
View File
@@ -5,8 +5,6 @@ type User struct {
Email string `gorm:"email"`
Password string `gorm:"password"`
Name string `gorm:"name"`
Version int `gorm:"version"`
Expired int64 `gorm:"expired"`
Status int `gorm:"status"`
Created int64 `gorm:"created"`
Updated int64 `gorm:"updated"`
@@ -47,18 +45,10 @@ type UserMailParam struct {
type UserInfo struct {
Uid int64 `json:"uid"`
Ver int `json:"version"`
Token string `json:"token"`
}
type UserPersonInfo struct {
Name string `json:"name"`
Email string `json:"email"`
Version int `json:"version"`
Expired int64 `json:"expired"`
}
type UserVerisonInfo struct {
Version int `json:"version"`
Expired int64 `json:"expired"`
Name string `json:"name"`
Email string `json:"email"`
}