shcp-api-lib 1.0.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.
Files changed (78) hide show
  1. package/README.md +74 -0
  2. package/dist/index.d.ts +5660 -0
  3. package/dist/index.esm.js +2954 -0
  4. package/dist/index.esm.js.map +1 -0
  5. package/dist/index.js +3038 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/types/src/api/app-client-api.d.ts +12 -0
  8. package/dist/types/src/api/app-client-page-config-api.d.ts +5 -0
  9. package/dist/types/src/api/app-client-setting-api.d.ts +5 -0
  10. package/dist/types/src/api/common-dict-api.d.ts +40 -0
  11. package/dist/types/src/api/common-file-api.d.ts +5 -0
  12. package/dist/types/src/api/common-right-api.d.ts +60 -0
  13. package/dist/types/src/api/consumer-api.d.ts +39 -0
  14. package/dist/types/src/api/consumer-bind-api.d.ts +15 -0
  15. package/dist/types/src/api/consumer-device-api.d.ts +24 -0
  16. package/dist/types/src/api/consumer-favorite-api.d.ts +8 -0
  17. package/dist/types/src/api/device-api.d.ts +19 -0
  18. package/dist/types/src/api/device-user-api.d.ts +29 -0
  19. package/dist/types/src/api/disease-care-right-api.d.ts +22 -0
  20. package/dist/types/src/api/health-common-api.d.ts +15 -0
  21. package/dist/types/src/api/health-metric-api.d.ts +9 -0
  22. package/dist/types/src/api/health-profile-api.d.ts +8 -0
  23. package/dist/types/src/api/health-self-assess-api.d.ts +8 -0
  24. package/dist/types/src/api/health-study-right-api.d.ts +23 -0
  25. package/dist/types/src/api/health-tool-api.d.ts +14 -0
  26. package/dist/types/src/api/help-center.d.ts +4 -0
  27. package/dist/types/src/api/im-user-api.d.ts +7 -0
  28. package/dist/types/src/api/index.d.ts +32 -0
  29. package/dist/types/src/api/km-article-api.d.ts +9 -0
  30. package/dist/types/src/api/km-form-api.d.ts +10 -0
  31. package/dist/types/src/api/km-form-rule-relation-api.d.ts +6 -0
  32. package/dist/types/src/api/login-api.d.ts +18 -0
  33. package/dist/types/src/api/marketing-api.d.ts +16 -0
  34. package/dist/types/src/api/message-record-api.d.ts +7 -0
  35. package/dist/types/src/api/mine-api.d.ts +8 -0
  36. package/dist/types/src/api/right-qrcode-api.d.ts +9 -0
  37. package/dist/types/src/api/right-service-config-api.d.ts +18 -0
  38. package/dist/types/src/api/system-right-api.d.ts +17 -0
  39. package/dist/types/src/api/user-group-api.d.ts +11 -0
  40. package/dist/types/src/constants/km-const.d.ts +59 -0
  41. package/dist/types/src/constants/metric.d.ts +17 -0
  42. package/dist/types/src/constants/qiniuUploader.d.ts +49 -0
  43. package/dist/types/src/constants/shcp-common.d.ts +428 -0
  44. package/dist/types/src/index.d.ts +4 -0
  45. package/dist/types/src/shcp-api-sdk.d.ts +26 -0
  46. package/dist/types/src/type/model/app-client-model.d.ts +138 -0
  47. package/dist/types/src/type/model/app-client-setting-model.d.ts +46 -0
  48. package/dist/types/src/type/model/blade-system-model.d.ts +34 -0
  49. package/dist/types/src/type/model/common-dict-model.d.ts +100 -0
  50. package/dist/types/src/type/model/common-file-model.d.ts +10 -0
  51. package/dist/types/src/type/model/common-model.d.ts +9 -0
  52. package/dist/types/src/type/model/common-right-model.d.ts +929 -0
  53. package/dist/types/src/type/model/consumer-bind-model.d.ts +175 -0
  54. package/dist/types/src/type/model/consumer-device-model.d.ts +114 -0
  55. package/dist/types/src/type/model/consumer-favorite-model.d.ts +105 -0
  56. package/dist/types/src/type/model/consumer-model.d.ts +214 -0
  57. package/dist/types/src/type/model/device-model.d.ts +295 -0
  58. package/dist/types/src/type/model/device-user-model.d.ts +53 -0
  59. package/dist/types/src/type/model/health-care-config-model.d.ts +301 -0
  60. package/dist/types/src/type/model/health-metric-model.d.ts +181 -0
  61. package/dist/types/src/type/model/health-profile-model.d.ts +83 -0
  62. package/dist/types/src/type/model/health-self-assess-model.d.ts +35 -0
  63. package/dist/types/src/type/model/health-tool-model.d.ts +105 -0
  64. package/dist/types/src/type/model/im-user-model.d.ts +44 -0
  65. package/dist/types/src/type/model/index.d.ts +30 -0
  66. package/dist/types/src/type/model/km-article-model.d.ts +275 -0
  67. package/dist/types/src/type/model/km-form-model.d.ts +745 -0
  68. package/dist/types/src/type/model/km-form-rule-relation-model.d.ts +31 -0
  69. package/dist/types/src/type/model/login-model.d.ts +90 -0
  70. package/dist/types/src/type/model/marketing-model.d.ts +142 -0
  71. package/dist/types/src/type/model/message-record-model.d.ts +59 -0
  72. package/dist/types/src/type/model/mine-model.d.ts +100 -0
  73. package/dist/types/src/type/model/right-qrcode-model.d.ts +143 -0
  74. package/dist/types/src/type/model/right-service-config-model.d.ts +2 -0
  75. package/dist/types/src/type/model/system-right-model.d.ts +134 -0
  76. package/dist/types/src/type/model/user-group-model.d.ts +45 -0
  77. package/dist/types/src/type/net-types.d.ts +37 -0
  78. package/package.json +47 -0
@@ -0,0 +1,34 @@
1
+ export interface UserDTO {
2
+ /** 用户id */
3
+ id: number | string;
4
+ /** 租户id */
5
+ tenantId: string;
6
+ /** 用户编号 */
7
+ code: string;
8
+ /** 用户平台 */
9
+ userType: number;
10
+ /** 账号 */
11
+ account: string;
12
+ /** 密码 */
13
+ password: string;
14
+ /** 昵称 */
15
+ name: string;
16
+ /** 真名 */
17
+ realName: string;
18
+ /** 头像 */
19
+ avatar: string;
20
+ /** 邮箱 */
21
+ email: string;
22
+ /** 手机 */
23
+ phone: string;
24
+ /** 生日 */
25
+ birthday: Date;
26
+ /** 性别 */
27
+ sex: number;
28
+ /** 角色id */
29
+ roleId: string;
30
+ /** 部门id */
31
+ deptId: string;
32
+ /** 岗位id */
33
+ postId: string;
34
+ }
@@ -0,0 +1,100 @@
1
+ export interface DictBiz {
2
+ /**
3
+ * 主键
4
+ */
5
+ id: number;
6
+ /**
7
+ * 租户ID
8
+ */
9
+ tenantId: string;
10
+ /**
11
+ * 父主键
12
+ */
13
+ parentId: number;
14
+ /**
15
+ * 字典码
16
+ */
17
+ code: string;
18
+ /**
19
+ * 字典值
20
+ */
21
+ dictKey: string;
22
+ /**
23
+ * 字典名称
24
+ */
25
+ dictValue: string;
26
+ /**
27
+ * 排序
28
+ */
29
+ sort: number;
30
+ /**
31
+ * 字典备注
32
+ */
33
+ remark: string;
34
+ /**
35
+ * 是否已封存
36
+ */
37
+ isSealed: number;
38
+ /**
39
+ * 业务状态
40
+ */
41
+ status: number;
42
+ /**
43
+ * 是否已删除
44
+ */
45
+ isDeleted: number;
46
+ }
47
+ export interface DictBizVO {
48
+ /**
49
+ * 主键
50
+ */
51
+ id: number;
52
+ /**
53
+ * 租户ID
54
+ */
55
+ tenantId: string;
56
+ /**
57
+ * 父主键
58
+ */
59
+ parentId: number;
60
+ /**
61
+ * 字典码
62
+ */
63
+ code: string;
64
+ /**
65
+ * 字典值
66
+ */
67
+ dictKey: string;
68
+ /**
69
+ * 字典名称
70
+ */
71
+ dictValue: string;
72
+ /**
73
+ * 排序
74
+ */
75
+ sort: number;
76
+ /**
77
+ * 字典备注
78
+ */
79
+ remark: string;
80
+ /**
81
+ * 是否已封存
82
+ */
83
+ isSealed: number;
84
+ /**
85
+ * 业务状态
86
+ */
87
+ status: number;
88
+ /**
89
+ * 是否已删除
90
+ */
91
+ isDeleted: number;
92
+ /**
93
+ * 子孙节点
94
+ */
95
+ children: DictBizVO[];
96
+ /**
97
+ * 上级字典
98
+ */
99
+ parentName: string;
100
+ }
@@ -0,0 +1,10 @@
1
+ export interface FileObject {
2
+ url: string;
3
+ cloudPath: string;
4
+ path: string;
5
+ name?: string;
6
+ }
7
+ export interface UploadResponse {
8
+ name?: string;
9
+ [key: string]: any;
10
+ }
@@ -0,0 +1,9 @@
1
+ export interface PageRequest {
2
+ current?: number;
3
+ size?: number;
4
+ }
5
+ export type TabOption = {
6
+ name: string;
7
+ value: string | number;
8
+ canShow?: (config: any) => boolean;
9
+ };