@be-link/ecs-cli-nodejs 0.0.71 → 0.0.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,6 +13,7 @@ declare class GroupService extends BaseService implements Service.GroupControlle
13
13
  jobExecMergeGroupTask(): Promise<void>;
14
14
  updateGroupName(): Promise<void>;
15
15
  syncChangedGroups(): Promise<void>;
16
+ getUserGroupList(request: Service.Request.IGetUserGroupList): Promise<Service.Response.IGetUserGroupList>;
16
17
  }
17
18
  declare const groupService: GroupService;
18
19
  export default groupService;
@@ -43,6 +43,9 @@ class GroupService extends service_1.default {
43
43
  syncChangedGroups() {
44
44
  return (0, http_1.callApi)(this.getApiUrl(this.syncChangedGroups));
45
45
  }
46
+ getUserGroupList(request) {
47
+ return (0, http_1.callApi)(this.getApiUrl(this.getUserGroupList), request);
48
+ }
46
49
  }
47
50
  const groupService = new GroupService();
48
51
  exports.default = groupService;
@@ -42,6 +42,11 @@ export declare namespace Service {
42
42
  pageIndex: number;
43
43
  pageSize: number;
44
44
  }
45
+ interface IGetUserGroupList {
46
+ unionId: string;
47
+ pageIndex: number;
48
+ pageSize: number;
49
+ }
45
50
  }
46
51
  namespace Response {
47
52
  interface IBotUser {
@@ -89,6 +94,17 @@ export declare namespace Service {
89
94
  inGroup: string;
90
95
  }[];
91
96
  }
97
+ interface IUserGroupItem {
98
+ groupId: string;
99
+ groupName: string;
100
+ joinTime: number;
101
+ }
102
+ interface IGetUserGroupList {
103
+ total: number;
104
+ pageIndex: number;
105
+ pageSize: number;
106
+ list: IUserGroupItem[];
107
+ }
92
108
  }
93
109
  interface GroupController {
94
110
  getBotUserList(): Promise<Response.IBotUser[]>;
@@ -102,5 +118,6 @@ export declare namespace Service {
102
118
  jobExecMergeGroupTask(): Promise<void>;
103
119
  updateGroupName(): Promise<void>;
104
120
  syncChangedGroups(): Promise<void>;
121
+ getUserGroupList(request: Request.IGetUserGroupList): Promise<Response.IGetUserGroupList>;
105
122
  }
106
123
  }
@@ -14,7 +14,7 @@ class BaseService {
14
14
  this.publicDevHost = 'https://ecs-dev.wejourney.top';
15
15
  this.publicProdHost = 'https://ecs.wejourney.top';
16
16
  /** 如果是云函数环境, 默认走公网访问 */
17
- this.isPublicEnv = (process.env.CONTAINER_ENV || 'SCF') === 'SCF';
17
+ this.isPublicEnv = true;
18
18
  }
19
19
  /** 获取API URL */
20
20
  getApiUrl(func) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@be-link/ecs-cli-nodejs",
3
- "version": "0.0.71",
3
+ "version": "0.0.73",
4
4
  "description": "ECS服务Nodejs客户端",
5
5
  "main": "index.js",
6
6
  "repository": {