Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeroGetAllArgs ¶
type HeroGetAllArgs struct {
PublicArgsFunc `json:"-" msgpack:"-"`
}
HeroGetAllArgs args
type HeroGetAllData ¶
type HeroGetAllData struct {
Heroes []Hero `json:"heroes" msgpack:"mHeroes"`
}
HeroGetAllData reply data
type HeroGetAllReply ¶
type HeroGetAllReply struct { Head *message.ResHead `json:"head" msgpack:"mHead"` Body *HeroGetAllData `json:"body" msgpack:"mBody"` PublicReplyFunc `json:"-" msgpack:"-"` }
HeroGetAllReply reply
type PublicArgs ¶ added in v1.0.4
type PublicArgs interface { }
type PublicReply ¶ added in v1.0.4
type PublicReply interface {
GetSessionID() string
}
type PublicReplyFunc ¶
type PublicReplyFunc struct{}
PublicReplyFunc 所有Reply报文的公共方法
func (*PublicReplyFunc) GetSessionID ¶
func (pf *PublicReplyFunc) GetSessionID() (sessionid string)
GetSessionID 取SessionID
type SignInArgs ¶
type SignInArgs struct { Usercode string Password string PublicArgsFunc `json:"-" msgpack:"-"` }
SignInArgs args
type SignInReply ¶
type SignInReply struct { Head *message.ResHead Body *SignInData PublicReplyFunc `json:"-" msgpack:"-"` }
SignInReply reply
type SignUpArgs ¶
type SignUpArgs struct { Usercode string Password string PublicArgsFunc `json:"-" msgpack:"-"` }
SignUpArgs args
type SignUpReply ¶
type SignUpReply struct { Head *message.ResHead Body *SignUpData PublicReplyFunc `json:"-" msgpack:"-"` }
SignUpReply reply
func (*SignUpReply) GetSessionID ¶
func (reply *SignUpReply) GetSessionID() (sessionid string)
GetSessionID 取sessionid
Click to show internal directories.
Click to hide internal directories.