users_payload

package
v0.0.0-...-a4deb0f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddUsersRequest

type AddUsersRequest struct {
	UserId       string    `json:"userid"  db:"user_id, omitempty"`
	Name         string    `json:"name,omitempty" db:"name, omitempty"`
	PassWord     string    `json:"-" db:"password, omitempty"`
	Email        string    `json:"email,omitempty" db:"email, omitempty"`
	Role         string    `json:"role" db:"role, omitempty"`
	CreatedAt    time.Time `json:"created_at" db:"created_at, omitempty"`
	UpdatedAt    time.Time `json:"updated_at" db:"updated_at, omitempty"`
	Token        string    `json:"-" db:"token"`
	PhoneNumber  string    `json:"phone_number,omitempty" db:"phone_number, omitempty"`
	Address      string    `json:"address" db:"address, omitempty"`
	Telegram     string    `json:"telegram,omitempty" db:"telegram,omitempty"`
	Sex          string    `json:"sex,omitempty" db:"sex,omitempty"`
	BirthDate    string    `json:"birth_date,omitempty" db:"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 (*AddUsersRequest) FromJson

func (c *AddUsersRequest) FromJson(a string)

func (*AddUsersRequest) ToModel

func (c *AddUsersRequest) ToModel() *users_model.Users

type GetUsersRequest

type GetUsersRequest struct {
	PassWord    string `json:"-" db:"password, omitempty" validate:"required"`
	Email       string `json:"email,omitempty" db:"email, omitempty" validate:"required"`
	Token       string `json:"token,omitempty" validate:"required"`
	PhoneNumber string `json:"phone_number,omitempty" db:"phone_number, omitempty" validate:"required"`
}

func (*GetUsersRequest) FromJson

func (c *GetUsersRequest) FromJson(a string)

func (*GetUsersRequest) ToModel

func (c *GetUsersRequest) ToModel() *users.ReqUsersSignIn

type UsersAddressPayload

type UsersAddressPayload 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 (*UsersAddressPayload) FromJson

func (c *UsersAddressPayload) FromJson(a string)

func (*UsersAddressPayload) ToModel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL