后台接口优化
This commit is contained in:
parent
bd36f98954
commit
e622273a73
@ -206,7 +206,7 @@ func AdminPlayerBack(a gate.Agent, res map[string]interface{}) {
|
||||
JsonBuff, _ := json.Marshal(res)
|
||||
response := &msg.AdminRes{}
|
||||
response.Func = "admin"
|
||||
response.Info = JsonBuff
|
||||
response.Info = string(JsonBuff)
|
||||
a.WriteMsg(response)
|
||||
}
|
||||
|
||||
|
||||
@ -27230,7 +27230,7 @@ func (x *AdminReq) GetInfo() []byte {
|
||||
type AdminRes struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Func string `protobuf:"bytes,1,opt,name=Func,proto3" json:"Func,omitempty"`
|
||||
Info []byte `protobuf:"bytes,2,opt,name=Info,proto3" json:"Info,omitempty"`
|
||||
Info string `protobuf:"bytes,2,opt,name=Info,proto3" json:"Info,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
@ -27272,11 +27272,11 @@ func (x *AdminRes) GetFunc() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AdminRes) GetInfo() []byte {
|
||||
func (x *AdminRes) GetInfo() string {
|
||||
if x != nil {
|
||||
return x.Info
|
||||
}
|
||||
return nil
|
||||
return ""
|
||||
}
|
||||
|
||||
type ReqAdminInfo struct {
|
||||
@ -29601,7 +29601,7 @@ const file_proto_Gameapi_proto_rawDesc = "" +
|
||||
"\x04Info\x18\x02 \x01(\fR\x04Info\"2\n" +
|
||||
"\bAdminRes\x12\x12\n" +
|
||||
"\x04Func\x18\x01 \x01(\tR\x04Func\x12\x12\n" +
|
||||
"\x04Info\x18\x02 \x01(\fR\x04Info\" \n" +
|
||||
"\x04Info\x18\x02 \x01(\tR\x04Info\" \n" +
|
||||
"\fReqAdminInfo\x12\x10\n" +
|
||||
"\x03Uid\x18\x01 \x01(\x03R\x03Uid\"\x15\n" +
|
||||
"\x13ReqReloadServerMail\"\x0f\n" +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user