proto

package
v0.0.0-...-b988991 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CTRLCMD_REOLADCONF_REQ = "reload_conf_req"
	CTRLCMD_REOLADCONF_RES = "reload_conf_res"
	CTRLCMD_RELOADDATA_REQ = "reload_data_req"
	CTRLCMD_RELOADDATA_RES = "reload_data_res"
)
View Source
const (
	E_DATATYPE_GUILDINFO = iota
	E_DATATYPE_USERINFO
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMetaI

type DataMetaI interface {
	Type() DataSetType
	Compare(object DataMetaI) bool
}

type DataSetType

type DataSetType int

type GuildInfoS

type GuildInfoS struct {
	ID        string `mapstructure:"id"`
	GuildName string `mapstructure:"name"`
	Creator   string `mapstructure:"creator"`
	PerformId string `mapstructure:"perform_id"`
}

func (*GuildInfoS) Compare

func (guild *GuildInfoS) Compare(object DataMetaI) bool

func (*GuildInfoS) Type

func (guild *GuildInfoS) Type() DataSetType

type ProtoAddGuildNameReqParamsS

type ProtoAddGuildNameReqParamsS ProtoDeleteGuildNameReqParamsS

type ProtoAddUserNameReqParamsS

type ProtoAddUserNameReqParamsS struct {
	Uin      string `json:"uin"`
	UserName string `json:"user_name"`
}

type ProtoControlCmdS

type ProtoControlCmdS struct {
	CmdName string `json:"CmdName"`
	CmdData string `json:"CmdData"`
}

type ProtoDeleteGuildNameReqParamsS

type ProtoDeleteGuildNameReqParamsS struct {
	GuildName string `json:"GuildName"`
	ID        string `json:"ID"`
	Creator   string `json:"Creator"`
	PerformId string `json:"PerformId"`
}

type ProtoDirtyWordFilterReq

type ProtoDirtyWordFilterReq struct {
	Uin     uint64 `json:"Uin"`
	Content string `json:"Content"`
}

type ProtoDirtyWordFilterRes

type ProtoDirtyWordFilterRes struct {
	Uin            uint64 `json:"Uin"`
	HaveDirtyWords int    `json:"HaveDirtyWords"` // 1: 有dirty内容 0:没有dirty内容
	FilterContent  string `json:"FilterContent"`  // 过滤后内容
}

type ProtoFindGuildsByNameRequestParamsS

type ProtoFindGuildsByNameRequestParamsS struct {
	GuildName  string `json:"GuildName"`
	QueryType  string `json:"QueryType"`
	QueryCount int    `json:"QueryCount"`
}

type ProtoFindGuildsByNameResponseParamsS

type ProtoFindGuildsByNameResponseParamsS struct {
	GuildCount int           `json:"GuildCount"`
	GuildInfos []*GuildInfoS `json:"GuildInfos"`
}

type ProtoFindUsersByNameRequestParamsS

type ProtoFindUsersByNameRequestParamsS struct {
	UserName   string `json:"UserName"`
	QueryType  string `json:"QueryType"`
	QueryCount int    `json:"QueryCount"`
}

type ProtoFindUsersByNameResponseParamsS

type ProtoFindUsersByNameResponseParamsS struct {
	UserCount int          `json:"UserCount"`
	UserInfos []*UserInfoS `json:"UserInfos"`
}

type ProtoModifyGuildNameReqParamsS

type ProtoModifyGuildNameReqParamsS struct {
	GuildName    string `json:"GuildName"`
	ID           string `json:"ID"`
	NewGuildName string `json:"NewUserName"`
}

type ProtoModifyUserNameReqParamsS

type ProtoModifyUserNameReqParamsS struct {
	UserName    string `json:"UserName"`
	Uin         string `json:"Uin"`
	NewUserName string `json:"NewUserName"`
}

type UserInfoS

type UserInfoS struct {
	Uin      string `mapstructure:"uin"`
	UserName string `mapstructure:"user_name"`
}

func (*UserInfoS) Compare

func (user *UserInfoS) Compare(object DataMetaI) bool

func (*UserInfoS) Type

func (user *UserInfoS) Type() DataSetType

Jump to

Keyboard shortcuts

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