fix: wecom user list
CI / admin (push) Has been skipped
CI / bff (push) Has been skipped
CI / chore (push) Has been skipped
CI / express (push) Has been skipped
CI / product (push) Has been skipped
CI / sale (push) Has been skipped
CI / user (push) Has been skipped
CI / wecom (push) Has been skipped
CI / changes (push) Successful in 12s
CI / ad (push) Successful in 0s

This commit is contained in:
zzw
2026-08-31 15:04:38 +08:00
parent b79d49d399
commit 9111cb26e7
11 changed files with 181 additions and 57 deletions
+21 -3
View File
@@ -202,6 +202,7 @@ type CreateUserReq struct {
Mobile string `protobuf:"bytes,4,opt,name=mobile,proto3" json:"mobile,omitempty"`
Avatar string `protobuf:"bytes,5,opt,name=avatar,proto3" json:"avatar,omitempty"`
Status uint32 `protobuf:"varint,6,opt,name=status,proto3" json:"status,omitempty"`
AgentIds []int64 `protobuf:"varint,7,rep,packed,name=agent_ids,json=agentIds,proto3" json:"agent_ids,omitempty"` // 应用 agents.id,多选
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -278,6 +279,13 @@ func (x *CreateUserReq) GetStatus() uint32 {
return 0
}
func (x *CreateUserReq) GetAgentIds() []int64 {
if x != nil {
return x.AgentIds
}
return nil
}
type UpdateUserReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // wecom_users 主键,优先
@@ -287,6 +295,7 @@ type UpdateUserReq struct {
Mobile string `protobuf:"bytes,5,opt,name=mobile,proto3" json:"mobile,omitempty"`
Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar,omitempty"`
Status uint32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
AgentIds []int64 `protobuf:"varint,8,rep,packed,name=agent_ids,json=agentIds,proto3" json:"agent_ids,omitempty"` // 应用 agents.id,多选
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -370,6 +379,13 @@ func (x *UpdateUserReq) GetStatus() uint32 {
return 0
}
func (x *UpdateUserReq) GetAgentIds() []int64 {
if x != nil {
return x.AgentIds
}
return nil
}
type StatusUserReq struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
@@ -482,14 +498,15 @@ const file_wecom_wecom_proto_rawDesc = "" +
"\tpage_size\x18\x02 \x01(\rR\bpageSize\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x12\n" +
"\x04type\x18\x04 \x01(\rR\x04type\x12\x16\n" +
"\x06status\x18\x05 \x01(\rR\x06status\"\x98\x01\n" +
"\x06status\x18\x05 \x01(\rR\x06status\"\xb5\x01\n" +
"\rCreateUserReq\x12\x17\n" +
"\auser_id\x18\x01 \x01(\x03R\x06userId\x12\x12\n" +
"\x04type\x18\x02 \x01(\rR\x04type\x12\x12\n" +
"\x04name\x18\x03 \x01(\tR\x04name\x12\x16\n" +
"\x06mobile\x18\x04 \x01(\tR\x06mobile\x12\x16\n" +
"\x06avatar\x18\x05 \x01(\tR\x06avatar\x12\x16\n" +
"\x06status\x18\x06 \x01(\rR\x06status\"\xa8\x01\n" +
"\x06status\x18\x06 \x01(\rR\x06status\x12\x1b\n" +
"\tagent_ids\x18\a \x03(\x03R\bagentIds\"\xc5\x01\n" +
"\rUpdateUserReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x17\n" +
"\auser_id\x18\x02 \x01(\x03R\x06userId\x12\x12\n" +
@@ -497,7 +514,8 @@ const file_wecom_wecom_proto_rawDesc = "" +
"\x04name\x18\x04 \x01(\tR\x04name\x12\x16\n" +
"\x06mobile\x18\x05 \x01(\tR\x06mobile\x12\x16\n" +
"\x06avatar\x18\x06 \x01(\tR\x06avatar\x12\x16\n" +
"\x06status\x18\a \x01(\rR\x06status\"7\n" +
"\x06status\x18\a \x01(\rR\x06status\x12\x1b\n" +
"\tagent_ids\x18\b \x03(\x03R\bagentIds\"7\n" +
"\rStatusUserReq\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
"\x06status\x18\x02 \x01(\rR\x06status\"\x1f\n" +
Binary file not shown.
+2
View File
@@ -74,6 +74,7 @@ message CreateUserReq {
string mobile = 4;
string avatar = 5;
uint32 status = 6;
repeated int64 agent_ids = 7; // 应用 agents.id,多选
}
message UpdateUserReq {
@@ -84,6 +85,7 @@ message UpdateUserReq {
string mobile = 5;
string avatar = 6;
uint32 status = 7;
repeated int64 agent_ids = 8; // 应用 agents.id,多选
}
message StatusUserReq {