cgserver 8.4.1 → 8.5.0

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.
@@ -38,8 +38,8 @@ exports.MongoUserModel = MongoUserModel;
38
38
  //暂时不实例化,方便重写
39
39
  exports.GUserSer = null;
40
40
  class UserService extends MongoBaseService_1.MongoBaseService {
41
- constructor(type) {
42
- super("user", type);
41
+ constructor(table, type) {
42
+ super(table, type);
43
43
  exports.GUserSer = this;
44
44
  }
45
45
  async _createNewUser(account_id, nickname, sex, logo, group) {
@@ -25,7 +25,7 @@ export declare class MongoUserModel extends MongoBaseModel {
25
25
  }
26
26
  export declare let GUserSer: UserService<MongoUserModel>;
27
27
  export declare class UserService<T extends MongoUserModel> extends MongoBaseService<T> {
28
- constructor(type: {
28
+ constructor(table: string, type: {
29
29
  new (): T;
30
30
  });
31
31
  protected _createNewUser(account_id: number, nickname: string, sex: number, logo: string, group?: ERoleGroup): Promise<T>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cgserver",
3
- "version": "8.4.1",
3
+ "version": "8.5.0",
4
4
  "author": "trojan",
5
5
  "type": "commonjs",
6
6
  "description": "free for all.Websocket or Http",