feat: add order module

This commit is contained in:
Rogee
2025-01-10 16:54:33 +08:00
parent 2ba8ed7dbd
commit ca1b4cdd12
17 changed files with 456 additions and 40 deletions

View File

@@ -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"`
}