fix: internal user field
CI / changes (push) Successful in 39s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 21s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 1s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 22s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 39s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 21s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 1s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / payment (push) Successful in 1s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 22s
CI / wecom (push) Successful in 0s
This commit is contained in:
+2
-11
@@ -1036,7 +1036,6 @@ func (x *InternalCheckUpdateData) GetResult() bool {
|
|||||||
|
|
||||||
type InternalUpdateReq struct {
|
type InternalUpdateReq struct {
|
||||||
state protoimpl.MessageState `protogen:"open.v1"`
|
state protoimpl.MessageState `protogen:"open.v1"`
|
||||||
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
||||||
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
|
||||||
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
|
||||||
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
|
||||||
@@ -1082,13 +1081,6 @@ func (*InternalUpdateReq) Descriptor() ([]byte, []int) {
|
|||||||
return file_user_user_proto_rawDescGZIP(), []int{17}
|
return file_user_user_proto_rawDescGZIP(), []int{17}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (x *InternalUpdateReq) GetUserId() int64 {
|
|
||||||
if x != nil {
|
|
||||||
return x.UserId
|
|
||||||
}
|
|
||||||
return 0
|
|
||||||
}
|
|
||||||
|
|
||||||
func (x *InternalUpdateReq) GetMobile() string {
|
func (x *InternalUpdateReq) GetMobile() string {
|
||||||
if x != nil {
|
if x != nil {
|
||||||
return x.Mobile
|
return x.Mobile
|
||||||
@@ -1340,9 +1332,8 @@ const file_user_user_proto_rawDesc = "" +
|
|||||||
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12!\n" +
|
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12!\n" +
|
||||||
"\fsubject_type\x18\x03 \x01(\tR\vsubjectType\"1\n" +
|
"\fsubject_type\x18\x03 \x01(\tR\vsubjectType\"1\n" +
|
||||||
"\x17InternalCheckUpdateData\x12\x16\n" +
|
"\x17InternalCheckUpdateData\x12\x16\n" +
|
||||||
"\x06result\x18\x01 \x01(\bR\x06result\"\xe0\x02\n" +
|
"\x06result\x18\x01 \x01(\bR\x06result\"\xc7\x02\n" +
|
||||||
"\x11InternalUpdateReq\x12\x17\n" +
|
"\x11InternalUpdateReq\x12\x16\n" +
|
||||||
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
|
|
||||||
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
|
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
|
||||||
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
|
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
|
||||||
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x16\n" +
|
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x16\n" +
|
||||||
|
|||||||
Binary file not shown.
@@ -107,7 +107,6 @@ message InternalCheckUpdateData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message InternalUpdateReq {
|
message InternalUpdateReq {
|
||||||
int64 user_id = 1;
|
|
||||||
string mobile = 2;
|
string mobile = 2;
|
||||||
string name = 3;
|
string name = 3;
|
||||||
string avatar = 4;
|
string avatar = 4;
|
||||||
|
|||||||
@@ -143,7 +143,6 @@ func (p InternalCheckUpdateValidator) GetMessage() validate.ValidatorMessages {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InternalUpdateValidator struct {
|
type InternalUpdateValidator struct {
|
||||||
UserId int64 `validate:"omitempty,gte=0"`
|
|
||||||
Mobile string `validate:"required,max=20"`
|
Mobile string `validate:"required,max=20"`
|
||||||
Name string `validate:"omitempty,max=64"`
|
Name string `validate:"omitempty,max=64"`
|
||||||
Avatar string `validate:"omitempty,max=255"`
|
Avatar string `validate:"omitempty,max=255"`
|
||||||
|
|||||||
Reference in New Issue
Block a user