midway-fatcms 0.0.1-beta.8 → 0.0.1-beta.9

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.
@@ -86,7 +86,7 @@ let CrudMtdGatewayController = class CrudMtdGatewayController extends ApiBaseSer
86
86
  cfgModel.sqlDatabase = dbName;
87
87
  cfgModel.sqlDdType = dbType;
88
88
  // 业务系统自定义的修改cfgModel
89
- await global_config_1.GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudMtd(cfgModel, methodInfo, this.ctx);
89
+ await global_config_1.GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudMtd(reqJson, cfgModel, methodInfo, this.ctx);
90
90
  return this.curdMixService.executeCrudByCfg(reqJson, cfgModel);
91
91
  }
92
92
  };
@@ -2,18 +2,20 @@ import { SqlDbType } from '../crud-pro/models/keys';
2
2
  interface IGlobalStaticConfig {
3
3
  /**
4
4
  * CrudStd: 业务系统自定义的修改cfgModel
5
+ * @param reqJson
5
6
  * @param cfgModel
6
7
  * @param appInfo
7
8
  * @param ctx
8
9
  */
9
- bizUpdateCfgModelForCrudStd(cfgModel: any, appInfo: any, ctx: any): Promise<any>;
10
+ bizUpdateCfgModelForCrudStd(reqJson: any, cfgModel: any, appInfo: any, ctx: any): Promise<any>;
10
11
  /**
11
12
  * CrudMtd: 业务系统自定义的修改cfgModel
13
+ * @param reqJson
12
14
  * @param cfgModel
13
15
  * @param methodInfo
14
16
  * @param ctx
15
17
  */
16
- bizUpdateCfgModelForCrudMtd(cfgModel: any, methodInfo: any, ctx: any): Promise<any>;
18
+ bizUpdateCfgModelForCrudMtd(reqJson: any, cfgModel: any, methodInfo: any, ctx: any): Promise<any>;
17
19
  SystemDbName: string;
18
20
  SystemDbType: SqlDbType;
19
21
  }
@@ -55,7 +55,7 @@ let CrudStdService = class CrudStdService extends ApiBaseService_1.ApiBaseServic
55
55
  // 根据用户配置,设置关联查询的数据信息。
56
56
  await this.crudStdRelationService.addCfgModelColumnsRelation(cfgModel, appInfo);
57
57
  // 业务系统自定义的修改cfgModel
58
- await global_config_1.GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudStd(cfgModel, appInfo, this.ctx);
58
+ await global_config_1.GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudStd(params, cfgModel, appInfo, this.ctx);
59
59
  return await this.curdMixService.executeCrudByCfg(params, cfgModel);
60
60
  }
61
61
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "midway-fatcms",
3
- "version": "0.0.1-beta.8",
3
+ "version": "0.0.1-beta.9",
4
4
  "description": "This is a midway component sample",
5
5
  "main": "dist/index.js",
6
6
  "typings": "index.d.ts",
@@ -104,7 +104,7 @@ export class CrudMtdGatewayController extends ApiBaseService {
104
104
  cfgModel.sqlDdType = dbType;
105
105
 
106
106
  // 业务系统自定义的修改cfgModel
107
- await GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudMtd(cfgModel, methodInfo, this.ctx);
107
+ await GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudMtd(reqJson, cfgModel, methodInfo, this.ctx);
108
108
 
109
109
  return this.curdMixService.executeCrudByCfg(reqJson, cfgModel);
110
110
  }
@@ -3,19 +3,21 @@ import { SqlDbType } from '../crud-pro/models/keys';
3
3
  interface IGlobalStaticConfig {
4
4
  /**
5
5
  * CrudStd: 业务系统自定义的修改cfgModel
6
+ * @param reqJson
6
7
  * @param cfgModel
7
8
  * @param appInfo
8
9
  * @param ctx
9
10
  */
10
- bizUpdateCfgModelForCrudStd(cfgModel: any, appInfo: any, ctx: any): Promise<any>;
11
+ bizUpdateCfgModelForCrudStd(reqJson: any, cfgModel: any, appInfo: any, ctx: any): Promise<any>;
11
12
 
12
13
  /**
13
14
  * CrudMtd: 业务系统自定义的修改cfgModel
15
+ * @param reqJson
14
16
  * @param cfgModel
15
17
  * @param methodInfo
16
18
  * @param ctx
17
19
  */
18
- bizUpdateCfgModelForCrudMtd(cfgModel: any, methodInfo: any, ctx: any): Promise<any>;
20
+ bizUpdateCfgModelForCrudMtd(reqJson: any, cfgModel: any, methodInfo: any, ctx: any): Promise<any>;
19
21
 
20
22
  SystemDbName: string;
21
23
  SystemDbType: SqlDbType;
@@ -70,7 +70,7 @@ export class CrudStdService extends ApiBaseService {
70
70
  await this.crudStdRelationService.addCfgModelColumnsRelation(cfgModel, appInfo);
71
71
 
72
72
  // 业务系统自定义的修改cfgModel
73
- await GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudStd(cfgModel, appInfo, this.ctx);
73
+ await GLOBAL_STATIC_CONFIG.getConfig().bizUpdateCfgModelForCrudStd(params, cfgModel, appInfo, this.ctx);
74
74
 
75
75
  return await this.curdMixService.executeCrudByCfg(params, cfgModel);
76
76
  }