39 lines
892 B
Go
39 lines
892 B
Go
![]() |
package proto
|
||
|
|
||
|
type GateSetting struct {
|
||
|
Version string `json:"Version"`
|
||
|
LoginClosed bool `json:"LoginClosed,omitempty"`
|
||
|
TimedClose bool `json:"TimedClose,omitempty"`
|
||
|
CloseTime int64 `json:"CloseTime,omitempty"`
|
||
|
ClosedList []uint32 `json:"ClosedList,omitempty"`
|
||
|
WhiteList []uint64 `json:"WhiteList,omitempty"`
|
||
|
}
|
||
|
|
||
|
type MsgGateSettingSaveReq struct {
|
||
|
GateSetting `json:",inline"`
|
||
|
}
|
||
|
|
||
|
type MsgGateSettingQueryAck struct {
|
||
|
GateSetting `json:",inline"`
|
||
|
}
|
||
|
|
||
|
type Notice struct {
|
||
|
Type string `json:"Type"`
|
||
|
Title string `json:"Title"`
|
||
|
Content string `json:"Content"`
|
||
|
BeginTime int64 `json:"BeginTime"`
|
||
|
EndTime int64 `json:"EndTime"`
|
||
|
}
|
||
|
|
||
|
type MsgGateQueryNoticeAck struct {
|
||
|
NoticeList []*Notice `json:"NoticeList,omitempty"`
|
||
|
}
|
||
|
|
||
|
type MsgGateAddNoticeReq struct {
|
||
|
Notice `json:",inline"`
|
||
|
}
|
||
|
|
||
|
type MsgGateDeleteNoticeReq struct {
|
||
|
Id uint64 `json:"Id"`
|
||
|
}
|