response

package
v0.0.0-...-6f9dc6e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddressEntity

type AddressEntity struct {
	Id        uint64 `json:"id"`
	Name      string `json:"name"`
	Phone     string `json:"phone"`
	IsDefault uint32 `json:"is_default"`
	PostCode  string `json:"post_code"`
	Province  string `json:"province"`
	City      string `json:"city"`
	Region    string `json:"region"`
	Detail    string `json:"detail"`
}

type AddressList

type AddressList struct {
	List []AddressEntity `json:"list"`
}

func NewAddressList

func NewAddressList() *AddressList

func (*AddressList) Marshal

func (r *AddressList) Marshal(p *addresspb.ListResponse)

type LoginResponse

type LoginResponse struct {
	Id       uint64 `json:"id"`
	Username string `json:"username"`
	Icon     string `json:"icon"`
}

func (*LoginResponse) Marshal

func (r *LoginResponse) Marshal(p *memberpb.MemberEntity)

type MemberResponse

type MemberResponse struct {
	Id            uint64 `json:"id"`
	MemberLevelId uint64 `json:"member_level_id"`
	Username      string `json:"username"`
	Phone         string `json:"phone"`
	Icon          string `json:"icon"`
	Status        int32  `json:"status"`
	Gender        int32  `json:"gender"`
	Birthday      string `json:"birthday"`
	City          string `json:"city"`
	Job           string `json:"job"`
	Growth        int32  `json:"growth"`
	CreatedAt     string `json:"created_at"`
}

func NewMemberResponse

func NewMemberResponse() *MemberResponse

func (*MemberResponse) Marshal

func (r *MemberResponse) Marshal(p *memberpb.MemberEntity)

Jump to

Keyboard shortcuts

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