fix: internal user
CI / changes (push) Successful in 40s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 24s
CI / chore (push) Successful in 23s
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 23s
CI / task (push) Successful in 0s
CI / user (push) Successful in 24s
CI / wecom (push) Successful in 0s

This commit is contained in:
zzw
2026-09-16 15:19:54 +08:00
parent e334bf0f66
commit 052425970a
15 changed files with 259 additions and 97 deletions
+48 -11
View File
@@ -289,6 +289,7 @@ type InternalCreateReq struct {
CredentialType []string `protobuf:"bytes,7,rep,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty"`
Identifier string `protobuf:"bytes,8,opt,name=identifier,proto3" json:"identifier,omitempty"`
Secret string `protobuf:"bytes,9,opt,name=secret,proto3" json:"secret,omitempty"`
BizId int64 `protobuf:"varint,10,opt,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -386,6 +387,13 @@ func (x *InternalCreateReq) GetSecret() string {
return ""
}
func (x *InternalCreateReq) GetBizId() int64 {
if x != nil {
return x.BizId
}
return 0
}
type InternalCreateData struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
@@ -924,8 +932,9 @@ func (x *InternalCheckCreateData) GetResult() bool {
type InternalCheckUpdateReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
BizId int64 `protobuf:"varint,1,opt,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"`
Mobile string `protobuf:"bytes,2,opt,name=mobile,proto3" json:"mobile,omitempty"`
SubjectType string `protobuf:"bytes,3,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -960,9 +969,9 @@ func (*InternalCheckUpdateReq) Descriptor() ([]byte, []int) {
return file_user_user_proto_rawDescGZIP(), []int{15}
}
func (x *InternalCheckUpdateReq) GetUserId() int64 {
func (x *InternalCheckUpdateReq) GetBizId() int64 {
if x != nil {
return x.UserId
return x.BizId
}
return 0
}
@@ -974,6 +983,13 @@ func (x *InternalCheckUpdateReq) GetMobile() string {
return ""
}
func (x *InternalCheckUpdateReq) GetSubjectType() string {
if x != nil {
return x.SubjectType
}
return ""
}
type InternalCheckUpdateData struct {
state protoimpl.MessageState `protogen:"open.v1"`
Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
@@ -1030,6 +1046,8 @@ type InternalUpdateReq struct {
CredentialType []string `protobuf:"bytes,8,rep,name=credential_type,json=credentialType,proto3" json:"credential_type,omitempty"`
Identifier string `protobuf:"bytes,9,opt,name=identifier,proto3" json:"identifier,omitempty"`
Secret string `protobuf:"bytes,10,opt,name=secret,proto3" json:"secret,omitempty"`
BizId int64 `protobuf:"varint,11,opt,name=biz_id,json=bizId,proto3" json:"biz_id,omitempty"`
SubjectType string `protobuf:"bytes,12,opt,name=subject_type,json=subjectType,proto3" json:"subject_type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -1134,6 +1152,20 @@ func (x *InternalUpdateReq) GetSecret() string {
return ""
}
func (x *InternalUpdateReq) GetBizId() int64 {
if x != nil {
return x.BizId
}
return 0
}
func (x *InternalUpdateReq) GetSubjectType() string {
if x != nil {
return x.SubjectType
}
return ""
}
type InternalUpdateData struct {
state protoimpl.MessageState `protogen:"open.v1"`
UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
@@ -1254,7 +1286,7 @@ const file_user_user_proto_rawDesc = "" +
"\x04size\x18\x03 \x01(\x05R\x04size\"7\n" +
"\rUserStatusReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
"\x06status\x18\x02 \x01(\x05R\x06status\"\x8d\x02\n" +
"\x06status\x18\x02 \x01(\x05R\x06status\"\xa4\x02\n" +
"\x11InternalCreateReq\x12\x16\n" +
"\x06mobile\x18\x01 \x01(\tR\x06mobile\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x16\n" +
@@ -1267,7 +1299,9 @@ const file_user_user_proto_rawDesc = "" +
"\n" +
"identifier\x18\b \x01(\tR\n" +
"identifier\x12\x16\n" +
"\x06secret\x18\t \x01(\tR\x06secret\"s\n" +
"\x06secret\x18\t \x01(\tR\x06secret\x12\x15\n" +
"\x06biz_id\x18\n" +
" \x01(\x03R\x05bizId\"s\n" +
"\x12InternalCreateData\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x18\n" +
"\acreated\x18\x02 \x01(\bR\acreated\x12\x16\n" +
@@ -1300,12 +1334,13 @@ const file_user_user_proto_rawDesc = "" +
"\x16InternalCheckCreateReq\x12\x16\n" +
"\x06mobile\x18\x01 \x01(\tR\x06mobile\"1\n" +
"\x17InternalCheckCreateData\x12\x16\n" +
"\x06result\x18\x01 \x01(\bR\x06result\"I\n" +
"\x16InternalCheckUpdateReq\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
"\x06mobile\x18\x02 \x01(\tR\x06mobile\"1\n" +
"\x06result\x18\x01 \x01(\bR\x06result\"j\n" +
"\x16InternalCheckUpdateReq\x12\x15\n" +
"\x06biz_id\x18\x01 \x01(\x03R\x05bizId\x12\x16\n" +
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12!\n" +
"\fsubject_type\x18\x03 \x01(\tR\vsubjectType\"1\n" +
"\x17InternalCheckUpdateData\x12\x16\n" +
"\x06result\x18\x01 \x01(\bR\x06result\"\xa6\x02\n" +
"\x06result\x18\x01 \x01(\bR\x06result\"\xe0\x02\n" +
"\x11InternalUpdateReq\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +
@@ -1320,7 +1355,9 @@ const file_user_user_proto_rawDesc = "" +
"identifier\x18\t \x01(\tR\n" +
"identifier\x12\x16\n" +
"\x06secret\x18\n" +
" \x01(\tR\x06secret\"Y\n" +
" \x01(\tR\x06secret\x12\x15\n" +
"\x06biz_id\x18\v \x01(\x03R\x05bizId\x12!\n" +
"\fsubject_type\x18\f \x01(\tR\vsubjectType\"Y\n" +
"\x12InternalUpdateData\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x16\n" +
"\x06mobile\x18\x02 \x01(\tR\x06mobile\x12\x12\n" +