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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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