feat: wecom tag create items
This commit is contained in:
+33
-8
@@ -49,16 +49,35 @@ service Wecom {
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
rpc CreateTags(CreateTagsReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
post: "/admin/v3/wecom/tags"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
|
||||
rpc ItemsTags(ItemsTagsReq) returns (Response) {
|
||||
option (google.api.http) = {
|
||||
get: "/admin/v3/wecom/tags"
|
||||
body: "*"
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
message EmptyReq {}
|
||||
|
||||
message CreateTagsReq{
|
||||
string name = 1;
|
||||
string remarks = 2;
|
||||
}
|
||||
|
||||
message ItemsTagsReq{
|
||||
string name = 1;
|
||||
uint32 page = 2;
|
||||
uint32 page_size = 3;
|
||||
}
|
||||
|
||||
message ItemsUserReq {
|
||||
uint32 page = 1;
|
||||
uint32 page_size = 2;
|
||||
@@ -74,18 +93,18 @@ message CreateUserReq {
|
||||
string mobile = 4;
|
||||
string avatar = 5;
|
||||
uint32 status = 6;
|
||||
repeated int64 agent_ids = 7; // 应用 agents.id,多选
|
||||
repeated int64 agent_ids = 7;
|
||||
}
|
||||
|
||||
message UpdateUserReq {
|
||||
int64 id = 1; // wecom_users 主键,优先
|
||||
int64 id = 1;
|
||||
int64 user_id = 2;
|
||||
uint32 type = 3;
|
||||
string name = 4;
|
||||
string mobile = 5;
|
||||
string avatar = 6;
|
||||
uint32 status = 7;
|
||||
repeated int64 agent_ids = 8; // 应用 agents.id,多选
|
||||
repeated int64 agent_ids = 8;
|
||||
}
|
||||
|
||||
message StatusUserReq {
|
||||
@@ -96,3 +115,9 @@ message StatusUserReq {
|
||||
message DeleteUserReq {
|
||||
int64 id = 1;
|
||||
}
|
||||
|
||||
message Response {
|
||||
int32 code = 1;
|
||||
string msg = 2;
|
||||
string data = 3;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user