Files
SourceTrace/SourceTraceFront/proto/user.go
2024-05-13 19:28:41 +08:00

19 lines
561 B
Go

package proto
type PageArgs struct {
Page int `json:"page"`
}
type UserArgs struct {
ID int `json:"id" gorm:"primaryKey"`
Username string `json:"username" gorm:"username"`
Password string `json:"password"`
Name string `json:"name"`
Gender string `json:"gender"`
Avatar string `json:"avatar" gorm:"default:https://git.nothamor.com:3000/avatars/5ac7c55998b93af2cb5c74e669959fc5?size=870"`
Address string `json:"address"`
Role int `json:"role" gorm:"default:1"`
Email string `json:"email"`
Phone string `json:"phone"`
}