项目初始化

This commit is contained in:
Taric Xin
2021-11-26 16:34:35 +08:00
parent 66644bcf0a
commit 5287578452
354 changed files with 45736 additions and 0 deletions

View File

@ -0,0 +1,7 @@
export interface IApiResponse {
success?: boolean;
msg?: string;
status?: number;
state?: number;
data?: any;
}

View File

@ -0,0 +1,26 @@
import { Observable } from 'rxjs';
export interface IBase {
// 增
addOne(params: any, url: string): Observable<any>;
asyncAddOne(params: any, url: string): Promise<any>;
addMany(params: any[], url: string): Observable<any>;
asyncAddMany(params: any[], url: string): Promise<any>;
// 删
delOne(params: any, url: string): Observable<any>;
asyncDelOne(params: any, url: string): Promise<any>;
delMany(params: any[], url: string): Observable<any>;
asyncDelMany(params: any[], url: string): Promise<any>;
// 改
updateOne(params: any, url: string): Observable<any>;
asyncUpdateOne(params: any, url: string): Promise<any>;
updateMany(params: any[], url: string): Observable<any>;
asyncUpdateMany(params: any[], url: string): Promise<any>;
// 查
getOne(params: any, url: string): Observable<any[]>;
asyncGetOne(params: any, url: string): Promise<any[]>;
getMany(params: any, url: string): Observable<any[]>;
asyncGetMany(params: any, url: string): Promise<any[]>;
}

View File

@ -0,0 +1,44 @@
/*
* .::::.
* .::::::::.
* :::::::::::
* ..:::::::::::'
* '::::::::::::'
* .::::::::::
* '::::::::::::::..
* ..::::::::::::.
* ``::::::::::::::::
* ::::``:::::::::' .:::.
* ::::' ':::::' .::::::::.
* .::::' :::: .:::::::'::::.
* .:::' ::::: .:::::::::' ':::::.
* .::' :::::.:::::::::' ':::::.
* .::' ::::::::::::::' ``::::.
* ...::: ::::::::::::' ``::.
* ````':. ':::::::::' ::::..
* '.:::::' ':'````..
*
* @Author: Maple
* @Date: 2021-06-10 16:04:50
* @LastEditors: Do not edit
* @LastEditTime: 2021-06-11 10:15:26
* @Description: 缓存数据对象
*/
export interface ICacheObj {
/**
* 生产日期
*/
pd: number;
/**
* 缓存数据
*/
data: any;
/**
* 有效时间
*/
vld?: number;
/**
* 是否加密
*/
encrypt?: boolean;
}

View File

@ -0,0 +1,6 @@
// Api
export * from './api/i-api-response.i';
// Core
export * from './core/i-base.i';
export * from './core/i-cache-obj';