上传星座图数据切换

This commit is contained in:
liwei1dao 2022-11-04 12:44:02 +08:00
parent c9236ad913
commit 5c61df0d54
2 changed files with 21 additions and 10 deletions

View File

@ -46,6 +46,6 @@ func (this *apiComp) Reset(session comm.IUserSession, req *pb.HoroscopeResetReq)
code = pb.ErrorCode_DBError
return
}
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeResetResp{Issucc: true})
session.SendMsg(string(this.module.GetType()), "upgrade", &pb.HoroscopeResetResp{Issucc: true, Info: info})
return
}

View File

@ -257,6 +257,7 @@ type HoroscopeResetResp struct {
unknownFields protoimpl.UnknownFields
Issucc bool `protobuf:"varint,1,opt,name=issucc,proto3" json:"issucc"`
Info *DBHoroscope `protobuf:"bytes,2,opt,name=info,proto3" json:"info"`
}
func (x *HoroscopeResetResp) Reset() {
@ -298,6 +299,13 @@ func (x *HoroscopeResetResp) GetIssucc() bool {
return false
}
func (x *HoroscopeResetResp) GetInfo() *DBHoroscope {
if x != nil {
return x.Info
}
return nil
}
var File_horoscope_horoscope_msg_proto protoreflect.FileDescriptor
var file_horoscope_horoscope_msg_proto_rawDesc = []byte{
@ -317,10 +325,12 @@ var file_horoscope_horoscope_msg_proto_rawDesc = []byte{
0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x6e, 0x69, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x6c,
0x76, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x02, 0x6c, 0x76, 0x22, 0x13, 0x0a, 0x11, 0x48,
0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73, 0x65, 0x74, 0x52, 0x65, 0x71,
0x22, 0x2c, 0x0a, 0x12, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73,
0x22, 0x4e, 0x0a, 0x12, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x65, 0x73,
0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63,
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x42, 0x06,
0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x69, 0x73, 0x73, 0x75, 0x63, 0x63, 0x12, 0x20,
0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x44,
0x42, 0x48, 0x6f, 0x72, 0x6f, 0x73, 0x63, 0x6f, 0x70, 0x65, 0x52, 0x04, 0x69, 0x6e, 0x66, 0x6f,
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -347,11 +357,12 @@ var file_horoscope_horoscope_msg_proto_goTypes = []interface{}{
}
var file_horoscope_horoscope_msg_proto_depIdxs = []int32{
6, // 0: HoroscopeInfoResp.info:type_name -> DBHoroscope
1, // [1:1] is the sub-list for method output_type
1, // [1:1] is the sub-list for method input_type
1, // [1:1] is the sub-list for extension type_name
1, // [1:1] is the sub-list for extension extendee
0, // [0:1] is the sub-list for field type_name
6, // 1: HoroscopeResetResp.info:type_name -> DBHoroscope
2, // [2:2] is the sub-list for method output_type
2, // [2:2] is the sub-list for method input_type
2, // [2:2] is the sub-list for extension type_name
2, // [2:2] is the sub-list for extension extendee
0, // [0:2] is the sub-list for field type_name
}
func init() { file_horoscope_horoscope_msg_proto_init() }