adtec-core-package 0.1.5 → 0.1.6
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/package.json
CHANGED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建人 胡啸东
|
|
3
|
+
* 说明: BaseEntity
|
|
4
|
+
* 创建时间: 2024/12/16 上午10:33
|
|
5
|
+
* 修改时间: 2024/12/16 上午10:33
|
|
6
|
+
*/
|
|
7
|
+
export interface BaseEntity {
|
|
8
|
+
// 创建者
|
|
9
|
+
createBy?: string
|
|
10
|
+
|
|
11
|
+
// 创建时间,使用Date类型来模拟对应的时间值,注意在TypeScript中处理日期相关操作可能需要借助额外的库,比如moment.js等
|
|
12
|
+
createTime?: string
|
|
13
|
+
|
|
14
|
+
// 更新者
|
|
15
|
+
updateBy?: string
|
|
16
|
+
|
|
17
|
+
// 更新时间
|
|
18
|
+
updateTime?: string
|
|
19
|
+
|
|
20
|
+
// 删除标志(0代表存在 2代表删除),使用number类型来模拟整数
|
|
21
|
+
isDelete?: '1' | '0'
|
|
22
|
+
|
|
23
|
+
// 更新者名字,该字段在数据库表结构对应的映射中不存在(exist = false),仅在代码逻辑中有使用
|
|
24
|
+
updateByName?: string
|
|
25
|
+
|
|
26
|
+
// 创建者名字,同样该字段在数据库表结构对应的映射中不存在(exist = false),仅在代码逻辑中有使用
|
|
27
|
+
createByName?: string
|
|
28
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { BaseEntity } from './BaseEntity.ts'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Create by丁盼
|
|
5
|
+
* 说明: ISysDictType
|
|
6
|
+
* 创建时间: 2024/11/6 下午5:05
|
|
7
|
+
* 修改时间: 2024/11/6 下午5:05
|
|
8
|
+
*/
|
|
9
|
+
export interface ISysDictType extends BaseEntity {
|
|
10
|
+
// 主键id
|
|
11
|
+
id?: string
|
|
12
|
+
|
|
13
|
+
// 字典编码
|
|
14
|
+
code?: string
|
|
15
|
+
|
|
16
|
+
// 字典名称
|
|
17
|
+
name?: string
|
|
18
|
+
|
|
19
|
+
// 字典类型
|
|
20
|
+
dictType?: string
|
|
21
|
+
|
|
22
|
+
// 数据来源
|
|
23
|
+
dataSrc?: string
|
|
24
|
+
|
|
25
|
+
// 视图名称,当数据来源为 "DB" 时才有值
|
|
26
|
+
viewName?: string
|
|
27
|
+
|
|
28
|
+
// 备注
|
|
29
|
+
remark?: string
|
|
30
|
+
|
|
31
|
+
// 是否有效,取值为 1(是)或 0(否)
|
|
32
|
+
isValid?: '1' | '0'
|
|
33
|
+
|
|
34
|
+
disabled?: boolean
|
|
35
|
+
|
|
36
|
+
children?: ISysDictType[]
|
|
37
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建人:xux
|
|
3
|
+
* 说明:
|
|
4
|
+
* 创建时间: 2024/8/31 下午4:21
|
|
5
|
+
* 修改时间: 2024/8/31 下午4:21
|
|
6
|
+
*/
|
|
7
|
+
export interface PageData<T = any> {
|
|
8
|
+
records: Array<T>
|
|
9
|
+
total: number
|
|
10
|
+
pages: number
|
|
11
|
+
current?: number
|
|
12
|
+
size?: number
|
|
13
|
+
}
|
|
14
|
+
export interface IpageDataQuery {
|
|
15
|
+
current?: number
|
|
16
|
+
size?: number
|
|
17
|
+
}
|