feat: add order module
This commit is contained in:
@@ -1 +1,26 @@
|
||||
package users
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"backend/database/fields"
|
||||
)
|
||||
|
||||
type UserInfo struct {
|
||||
ID int64 `json:"id"`
|
||||
CreatedAt time.Time `json:"created_at"`
|
||||
Status fields.UserStatus `json:"status"`
|
||||
Email string `json:"email"`
|
||||
Phone string `json:"phone"`
|
||||
Nickname *string `json:"nickname"`
|
||||
Username string `json:"username"`
|
||||
Age int16 `json:"age"`
|
||||
Sex int16 `json:"sex"`
|
||||
Avatar *string `json:"avatar"`
|
||||
OAuths []OAuth `json:"oauths"`
|
||||
}
|
||||
|
||||
type OAuth struct {
|
||||
Channel fields.AuthChannel `json:"channel"`
|
||||
ExpireAt time.Time `json:"expire_at"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user