customer/internal/models/auth.go

17 lines
436 B
Go
Raw Normal View History

2023-06-22 09:36:43 +00:00
package models
import "time"
type User struct {
ID string `json:"_id"`
Login string `json:"login"`
Email string `json:"email"`
PhoneNumber string `json:"phoneNumber"`
IsDeleted bool `json:"isDeleted"`
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
const AuthJWTDecodedUserIDKey = "userID"