project init

This commit is contained in:
System Administrator
2020-03-26 22:41:11 +08:00
commit dfff01e6a0
31 changed files with 8278 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
export interface IAccountInfo {
userAccount: string;
password: string;
}
+7
View File
@@ -0,0 +1,7 @@
import {IAccountInfo} from "./IAccountInfo";
import {ILoginResult} from "./ILoginResult";
export interface IAccountService {
login(accountInfo: IAccountInfo): Promise<ILoginResult>;
authUser(userInfo: IAccountInfo): boolean;
}
+15
View File
@@ -0,0 +1,15 @@
import { HttpMethod } from 'urllib';
/**
* @description User-Service abstractions
*/
export interface IFetchOptions {
method?: string;
url: string;
body: object;
head?: object;
timeout?: number;
headers?: object;
type?: HttpMethod;
ssjToken: string;
}
+3
View File
@@ -0,0 +1,3 @@
export interface ILoginResult {
token:string
}
+15
View File
@@ -0,0 +1,15 @@
export enum ProductType {
/**
* 网贷(二部产品)
*/
WEB_LOAN,
/**
* 信用卡贷款(一部产品)
*/
CREDIT_CARD,
}
export interface IRequestBody {
head: any;
body: any;
}
+11
View File
@@ -0,0 +1,11 @@
export enum ResultCode {
SUCCESS = '000000',
FAILD = '100000',
UNAUTH = '999999'
}
export interface IResult {
code: ResultCode;
data: any;
message: string;
}