apiTypes_gen

package
v0.0.0-...-e748e90 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelIdAuthRequest    = 1
	ModelIdAuthResponse   = 2
	ModelIdUserInfo       = 3
	ModelIdGetUsersResult = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthRequest

type AuthRequest struct {
	Username string
	Password string
}

func (*AuthRequest) DeserializeBinary

func (m *AuthRequest) DeserializeBinary(data []byte) error

func (*AuthRequest) GetModelId

func (m *AuthRequest) GetModelId() int

func (*AuthRequest) SerializeBinary

func (m *AuthRequest) SerializeBinary() ([]byte, error)

type AuthResponse

type AuthResponse struct {
	Token        string
	UserId       int64
	ProfileImage []byte
}

func (*AuthResponse) DeserializeBinary

func (m *AuthResponse) DeserializeBinary(data []byte) error

func (*AuthResponse) GetModelId

func (m *AuthResponse) GetModelId() int

func (*AuthResponse) SerializeBinary

func (m *AuthResponse) SerializeBinary() ([]byte, error)

type GetUsersResult

type GetUsersResult struct {
	Users      []*UserInfo
	OtherUsers []*UserInfo
}

func (*GetUsersResult) DeserializeBinary

func (m *GetUsersResult) DeserializeBinary(data []byte) error

func (*GetUsersResult) GetModelId

func (m *GetUsersResult) GetModelId() int

func (*GetUsersResult) SerializeBinary

func (m *GetUsersResult) SerializeBinary() ([]byte, error)

type UserInfo

type UserInfo struct {
	Id           int64
	Username     string
	Email        string
	ProfileImage []byte
	CreatedAt    time.Time
	UpdatedAt    time.Time
}

func (*UserInfo) DeserializeBinary

func (m *UserInfo) DeserializeBinary(data []byte) error

func (*UserInfo) GetModelId

func (m *UserInfo) GetModelId() int

func (*UserInfo) SerializeBinary

func (m *UserInfo) SerializeBinary() ([]byte, error)

Jump to

Keyboard shortcuts

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