Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Follower ¶
type Follower struct { UserID string `json:"user_id" binding:"required"` FollowerID string `json:"follower_id" binding:"required"` }
func TestFollower ¶
type Order ¶
type OrderProduct ¶
type OrderProduct struct { ID int `json:"id"` OrderID string `json:"order_id"` ProductID string `json:"product_id"` Amount int `json:"amount"` }
func (*OrderProduct) Validate ¶
func (m *OrderProduct) Validate() error
type OrderProductView ¶
type Price ¶
type Product ¶
type ProductUpdateInput ¶
type Profile ¶
type Profile struct { UserID string `json:"user_id"` FirstName string `json:"first_name" binding:"required"` LastName string `json:"last_name" binding:"required"` MiddleName string `json:"middle_name"` FullName string `json:"full_name"` Sex string `json:"sex" binding:"required"` Age int `json:"age" binding:"required"` }
type User ¶
type User struct { ID string `json:"id"` Username string `json:"username"` Password string `json:"password"` PasswordHash string `json:"password_hash"` }
func TestExistUser ¶
func TestExistUser2 ¶
func (*User) BeforeCreate ¶
func (u *User) BeforeCreate(encryptor service.PasswordEncryptor) error
BeforeCreate ...
func (*User) ComparePassword ¶
func (u *User) ComparePassword(password string, encryptor service.PasswordEncryptor) bool
ComparePassword ...
Click to show internal directories.
Click to hide internal directories.