修改背景ID类型
This commit is contained in:
parent
f109832c7a
commit
43b5f9c798
@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func (this *apiComp) ModifybgpCheck(session comm.IUserSession, req *pb.UserModifybgpReq) (code pb.ErrorCode) {
|
||||
if req.BgpId == 0 {
|
||||
if req.BgpId == "" {
|
||||
code = pb.ErrorCode_ReqParameterError
|
||||
}
|
||||
return
|
||||
|
@ -1217,7 +1217,7 @@ type UserModifybgpReq struct {
|
||||
sizeCache protoimpl.SizeCache
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
BgpId int32 `protobuf:"varint,1,opt,name=bgpId,proto3" json:"bgpId"` //背景图片ID
|
||||
BgpId string `protobuf:"bytes,1,opt,name=bgpId,proto3" json:"bgpId"` //背景图片ID
|
||||
}
|
||||
|
||||
func (x *UserModifybgpReq) Reset() {
|
||||
@ -1252,11 +1252,11 @@ func (*UserModifybgpReq) Descriptor() ([]byte, []int) {
|
||||
return file_user_user_msg_proto_rawDescGZIP(), []int{24}
|
||||
}
|
||||
|
||||
func (x *UserModifybgpReq) GetBgpId() int32 {
|
||||
func (x *UserModifybgpReq) GetBgpId() string {
|
||||
if x != nil {
|
||||
return x.BgpId
|
||||
}
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
|
||||
type UserModifybgpResp struct {
|
||||
@ -1265,7 +1265,7 @@ type UserModifybgpResp struct {
|
||||
unknownFields protoimpl.UnknownFields
|
||||
|
||||
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"`
|
||||
BgpId int32 `protobuf:"varint,2,opt,name=bgpId,proto3" json:"bgpId"` //背景图片ID
|
||||
BgpId string `protobuf:"bytes,2,opt,name=bgpId,proto3" json:"bgpId"` //背景图片ID
|
||||
}
|
||||
|
||||
func (x *UserModifybgpResp) Reset() {
|
||||
@ -1307,11 +1307,11 @@ func (x *UserModifybgpResp) GetUid() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *UserModifybgpResp) GetBgpId() int32 {
|
||||
func (x *UserModifybgpResp) GetBgpId() string {
|
||||
if x != nil {
|
||||
return x.BgpId
|
||||
}
|
||||
return 0
|
||||
return ""
|
||||
}
|
||||
|
||||
// 修改形象
|
||||
@ -2045,11 +2045,11 @@ var file_user_user_msg_proto_rawDesc = []byte{
|
||||
0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61,
|
||||
0x76, 0x61, 0x74, 0x61, 0x72, 0x49, 0x64, 0x22, 0x28, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x4d,
|
||||
0x6f, 0x64, 0x69, 0x66, 0x79, 0x62, 0x67, 0x70, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x62,
|
||||
0x67, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49,
|
||||
0x67, 0x70, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49,
|
||||
0x64, 0x22, 0x3b, 0x0a, 0x11, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x62,
|
||||
0x67, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20,
|
||||
0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x67, 0x70, 0x49,
|
||||
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x22, 0x31,
|
||||
0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x62, 0x67, 0x70, 0x49, 0x64, 0x22, 0x31,
|
||||
0x0a, 0x13, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x6f, 0x64, 0x69, 0x66, 0x79, 0x66, 0x69, 0x67, 0x75,
|
||||
0x72, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49,
|
||||
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x49,
|
||||
|
Loading…
Reference in New Issue
Block a user