appidea-restapi/modules/structs/user.go

37 lines
548 B
Go

package structs
import (
"time"
)
// User user
// swagger:model User user
type User struct {
Id string
Hashtag string
Name string
Email string
Password string
/*Rank int */
AvatarUrl string
/*Location string
Description string */
LanguageId int
/* Cash int
Posts int
Followers int
Following int */
State int
LastLogin time.Time
CreatedAt time.Time
UpdatedAt time.Time
}
type APIUser struct {
Id string
Hashtag string
Name string
AvatarUrl string
Points int
}