friend

package
v0.0.0-...-5ad4795 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ADD_BY_ID int = iota
	ADD_BY_NICKNAME
)

Variables

This section is empty.

Functions

func NewFriendControl

func NewFriendControl(srv service.ServiceFactory) *friendServer

Types

type AddFriendForm

type AddFriendForm struct {
	//Type     int    `form:"type" json:"type" binding:"required,min=0,max=1"`
	*friend.FriendDTO
	ReqText string `json:"req_text,omitempty"`
}

type FriendListForm

type FriendListForm struct {
	//Type     int    `form:"type" json:"type" binding:"required,min=0,max=1"`
	OwnerID uint   `form:"owner_id" json:"owner_id" binding:"required"`
	Pn      uint32 `form:"pn" json:"pn,omitempty"`
	PSize   uint32 `form:"pSize" json:"pSize,omitempty"`
}

Jump to

Keyboard shortcuts

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