moyan-api 1.0.14 → 1.0.17

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.0.17](https://gitee.com/ymoo/moyan-api/compare/v1.0.16...v1.0.17) (2022-03-31)
6
+
7
+ ### [1.0.16](https://gitee.com/ymoo/moyan-api/compare/v1.0.15...v1.0.16) (2022-03-31)
8
+
9
+ ### [1.0.15](https://gitee.com/ymoo/moyan-api/compare/v1.0.14...v1.0.15) (2022-03-30)
10
+
5
11
  ### [1.0.14](https://gitee.com/ymoo/moyan-api/compare/v1.0.13...v1.0.14) (2022-03-21)
6
12
 
7
13
  ### [1.0.13](https://gitee.com/ymoo/moyan-api/compare/v1.0.12...v1.0.13) (2022-03-17)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "moyan-api",
3
- "version": "1.0.14",
3
+ "version": "1.0.17",
4
4
  "description": "使用OpenApi 生成TypeScript的api调用skd",
5
5
  "main": "./dist/index.js",
6
6
  "types": "src",
package/view/api.ejs CHANGED
@@ -8,7 +8,14 @@ import {
8
8
  char,
9
9
  varchar,
10
10
  json,
11
- datetime
11
+ date,
12
+ datetime,
13
+ array,
14
+ tinyint,
15
+ text,
16
+ bigint,
17
+ integer,
18
+ float,
12
19
  } from './schemas'
13
20
 
14
21
 
package/view/schemas.ejs CHANGED
@@ -1,9 +1,16 @@
1
1
  export type ObjectId = string
2
2
  export type int = number
3
+ export type bigint = number
4
+ export type integer = number
5
+ export type float = number
3
6
  export type char = string
4
7
  export type varchar = string
5
- export type json = {[key:string]:any}
8
+ export type json = {[key:string]:any}|Array<{[key:string]:any}>
6
9
  export type datetime = Date | string
10
+ export type date = Date | string
11
+ export type array = Array<any>
12
+ export type tinyint = string
13
+ export type text = string
7
14
 
8
15
  <% list.forEach((item) => { %>
9
16
  export type <%= item.key %> = {