customer/internal/models/auth.go

17 lines
436 B
Go
Raw Normal View History

2023-05-16 01:12:07 +00:00
package models
import "time"
2023-05-17 20:27:09 +00:00
type User struct {
2023-05-16 01:12:07 +00:00
ID string `json:"_id"`
Login string `json:"login"`
Email string `json:"email"`
PhoneNumber string `json:"phoneNumber"`
2023-05-17 20:27:09 +00:00
IsDeleted bool `json:"isDeleted"`
2023-05-16 01:12:07 +00:00
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
DeletedAt *time.Time `json:"deletedAt,omitempty"`
}
2023-05-17 20:27:09 +00:00
const AuthJWTDecodedUserIDKey = "userID"