diff --git a/package.json b/package.json index e7256c3..da2862a 100644 --- a/package.json +++ b/package.json @@ -56,4 +56,4 @@ "webpack-bundle-analyzer": "^3.8.0", "yamljs": "^0.3.0" } -} +} \ No newline at end of file diff --git a/src/core/config/configure.config.ts b/src/core/config/configure.config.ts index ae48965..7d9cba1 100644 --- a/src/core/config/configure.config.ts +++ b/src/core/config/configure.config.ts @@ -21,28 +21,28 @@ export class ConfigureConfig { ProdUrl: string, ApiList: { [key: string]: string } } = { - DevUrl: 'http://127.0.0.1:8080', - ProdUrl: 'http://127.0.0.1:9090/api', - ApiList: { - // start - 下面 注释内的各个对象key 将被Nodejs实时监听,获取你key改动(增删改)后,将同步 - // start - 自动生成接口请求中间层的文件和文件内部的代码。 - // start - 注意 下面 被注释的key 将不会生成文件或代码 + DevUrl: 'http://127.0.0.1:8080', + ProdUrl: 'http://127.0.0.1:9090/api', + ApiList: { + // start - 下面 注释内的各个对象key 将被Nodejs实时监听,获取你key改动(增删改)后,将同步 + // start - 自动生成接口请求中间层的文件和文件内部的代码。 + // start - 注意 下面 被注释的key 将不会生成文件或代码 - // UserList: '/UserList', - // User_IndexTest: '/test', - Car_carList: '/test', - // Car_addCar: '/test', + // UserList: '/UserList', + // User_IndexTest: '/test', + Car_carList: '/test', + Car_addCar: '/test', - Index_reg: '/reg', - Index_login: '/login', + Index_reg: '/reg', + Index_login: '/login', - Order_test: '/test', + Order_test: '/test', - // end - 上面 注释内的各个对象key 将被Nodejs实时监听,获取你key改动(增删改)后,将同步 - // end - 自动生成接口请求中间层的文件和文件内部的代码。 - // end - 注意 上面 被注释的key 将不会生成文件或代码 - } - }; + // end - 上面 注释内的各个对象key 将被Nodejs实时监听,获取你key改动(增删改)后,将同步 + // end - 自动生成接口请求中间层的文件和文件内部的代码。 + // end - 注意 上面 被注释的key 将不会生成文件或代码 + } + }; /** * Vue 插件 diff --git a/src/core/service/Car.service.ts b/src/core/service/Car.service.ts index 17b0ef9..aeff258 100644 --- a/src/core/service/Car.service.ts +++ b/src/core/service/Car.service.ts @@ -14,4 +14,8 @@ export class CarService { @Mapper(ResponseType) public async carList (params: object): Promise {} + @GET() + @Mapper(ResponseType) + public async addCar (params: object): Promise {} + } \ No newline at end of file