初始化

This commit is contained in:
2024-08-27 14:51:15 +08:00
parent 5bda797839
commit 2919f32729
91 changed files with 5691 additions and 1 deletions
+6
View File
@@ -0,0 +1,6 @@
package dto
type LoginDto struct {
UserId string `json:"user_id"` // 用户id
Token string `json:"token"` // token
}
+16
View File
@@ -0,0 +1,16 @@
package dto
import (
"vote-api/api/model"
)
// UserDto 用户表
type UserDto struct {
UserId string `json:"user_id"` // 用户id
UserStatus int `json:"user_status"` // 状态(1:正常 2:禁用)
OpenId string `json:"open_id"` // 用户微信标识
LoginAt *model.LocalTime `json:"login_at"` // 登陆时间
LoginIp string `json:"login_ip"` // 登陆ip
CreatedAt model.LocalTime `json:"created_at"` // 创建时间
UpdatedAt model.LocalTime `json:"updated_at"` // 更新时间
}