Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReqSignIn ¶
type ReqSignIn struct { PassWord string `json:"-" validate:"required"` Token string `json:"-"` Email string `json:"email" validate:"required,email"` PhoneNumber string `json:"phone_number" validate:"required"` }
func (*ReqSignIn) ToPayload ¶
func (c *ReqSignIn) ToPayload() *users_payload.GetUsersRequest
type Users ¶
type Users struct { UserId string `json:"-"` Name string `json:"name" validate:"required"` PassWord string `json:"-"` Email string `json:"email" validate:"required,email"` Role string `json:"-"` CreatedAt time.Time `json:"-"` UpdatedAt time.Time `json:"-"` Token string `json:"-"` PhoneNumber string `json:"-"` Address string `json:"-"` Telegram string `json:"telegram,omitempty"` Sex string `json:"sex,omitempty"` BirthDate string `json:"birth_date,omitempty"` Lat float64 `json:"lat,omitempty"` Long float64 `json:"long,omitempty"` WardId string `json:"ward_id,omitempty"` WardText string `json:"ward_text,omitempty"` DistrictId string `json:"district_id,omitempty"` DistrictText string `json:"district_text,omitempty"` ProvinceId string `json:"province_id,omitempty"` ProvinceText string `json:"province_text,omitempty"` NationalId string `json:"national_id,omitempty"` NationalText string `json:"national_text,omitempty"` }
func (*Users) ToPayload ¶
func (c *Users) ToPayload() *users_payload.AddUsersRequest
type UsersAddressDto ¶
type UsersAddressDto struct { UserId string `json:"user_id,omitempty"` Address string `json:"address,omitempty"` Name string `json:"name,omitempty"` PhoneNumber string `json:"phone_number,omitempty"` TypeAddress string `json:"type_address,omitempty"` AddressDefault string `json:"address_default,omitempty"` Lat float64 `json:"lat,omitempty"` Long float64 `json:"long,omitempty"` WardId string `json:"ward_id,omitempty"` WardText string `json:"ward_text,omitempty"` DistrictId string `json:"district_id,omitempty"` DistrictText string `json:"district_text,omitempty"` ProvinceId string `json:"province_id,omitempty"` ProvinceText string `json:"province_text,omitempty"` NationalId string `json:"national_id,omitempty"` NationalText string `json:"national_text,omitempty"` }
func (*UsersAddressDto) ToPayload ¶
func (c *UsersAddressDto) ToPayload() *users_payload.UsersAddressPayload
Click to show internal directories.
Click to hide internal directories.