-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
149 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
/// <reference path="../global.d.ts"/> | ||
|
||
namespace Api { | ||
namespace Login { | ||
/* 登录返回的用户字段, 该数据是根据用户表扩展而来, 部分字段可能需要覆盖,例如id */ | ||
interface Info extends Entity.User { | ||
/** 用户id */ | ||
id: number | ||
/** 用户角色类型 */ | ||
role: RoleType | ||
/** 访问toekn */ | ||
accessToken: string | ||
/** 刷新toekn */ | ||
refreshToken: string | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/// <reference path="../global.d.ts"/> | ||
|
||
/* 角色数据库表字段 */ | ||
namespace Entity { | ||
interface DemoList { | ||
id: number | ||
name: string | ||
age: number | ||
gender: '0' | '1' | null | ||
email: string | ||
address: string | ||
role: Entity.RoleType | ||
disabled: boolean | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/// <reference path="../global.d.ts"/> | ||
|
||
/* 角色数据库表字段 */ | ||
namespace Entity { | ||
interface Message { | ||
id: number | ||
type: 0 | 1 | 2 | ||
title: string | ||
icon: string | ||
tagTitle?: string | ||
tagType?: 'error' | 'info' | 'success' | 'warning' | ||
description?: string | ||
isRead?: boolean | ||
date: string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
/// <reference path="../global.d.ts"/> | ||
|
||
/* 角色数据库表字段 */ | ||
namespace Entity { | ||
type RoleType = 'super' | 'admin' | 'user' | ||
|
||
interface Role { | ||
/** 用户id */ | ||
id?: number | ||
/** 用户名 */ | ||
role?: RoleType | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/// <reference path="../global.d.ts"/> | ||
|
||
/** 用户数据库表字段 */ | ||
namespace Entity { | ||
interface User { | ||
/** 用户id */ | ||
id?: number | ||
/** 用户名 */ | ||
userName?: string | ||
/* 用户头像 */ | ||
avatar?: string | ||
/* 用户性别 */ | ||
gender?: 0 | 1 | ||
/* 用户邮箱 */ | ||
email?: string | ||
/* 用户昵称 */ | ||
nickname?: string | ||
/* 用户电话 */ | ||
tel?: string | ||
/** 用户角色类型 */ | ||
role?: Entity.RoleType[] | ||
/** 用户状态 */ | ||
status?: 0 | 1 | ||
/** 备注 */ | ||
remark?: string | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.