forked from mfay/IOReportMgt
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
510 lines
9.8 KiB
510 lines
9.8 KiB
|
4 years ago
|
type ObjectMap<Key extends string | number | symbol = any, Value = any> = {
|
||
|
|
[key in Key]: Value;
|
||
|
|
};
|
||
|
|
|
||
|
|
declare namespace defs {
|
||
|
|
export class GrantedAuthority {
|
||
|
|
/** authority */
|
||
|
|
authority?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class IORecords {
|
||
|
|
/** 出入校时间 */
|
||
|
|
commitTime?: string;
|
||
|
|
|
||
|
|
/** 院级审核时间 */
|
||
|
|
deptAuditTime?: string;
|
||
|
|
|
||
|
|
/** 院级审核人 */
|
||
|
|
deptAuditorID?: number;
|
||
|
|
|
||
|
|
/** 报备记录ID */
|
||
|
|
id?: number;
|
||
|
|
|
||
|
|
/** 校内居住地 */
|
||
|
|
innerResidence?: string;
|
||
|
|
|
||
|
|
/** 报备单类型:1-出;0-入 */
|
||
|
|
ioType?: number;
|
||
|
|
|
||
|
|
/** 校外居住地 */
|
||
|
|
outerResidence?: string;
|
||
|
|
|
||
|
|
/** 二维码token */
|
||
|
|
qrToken?: defs.QRToken;
|
||
|
|
|
||
|
|
/** 申请事由 */
|
||
|
|
reason?: string;
|
||
|
|
|
||
|
|
/** 校级审核时间 */
|
||
|
|
schoolAuditTime?: string;
|
||
|
|
|
||
|
|
/** 校级审核人 */
|
||
|
|
schoolAuditorID?: number;
|
||
|
|
|
||
|
|
/** 单据状态:0-保存;1-提交待审核;2-院级审核通过;3-校级审核通过;4-核验通过;9-院级审核不通过;8-校级审核不通过;7-核验不通过 */
|
||
|
|
status?: string;
|
||
|
|
|
||
|
|
/** 教师工号 */
|
||
|
|
teacherID?: string;
|
||
|
|
|
||
|
|
/** 核验时间 */
|
||
|
|
validateTime?: string;
|
||
|
|
|
||
|
|
/** 核验人 */
|
||
|
|
validatorID?: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class ListResultVO<T0 = any> {
|
||
|
|
/** 当前页码 */
|
||
|
|
current?: number;
|
||
|
|
|
||
|
|
/** 列表数据 */
|
||
|
|
list?: Array<T0>;
|
||
|
|
|
||
|
|
/** 每页记录数 */
|
||
|
|
pageSize?: number;
|
||
|
|
|
||
|
|
/** 记录总数 */
|
||
|
|
total?: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class QRToken {
|
||
|
|
/** expireTime */
|
||
|
|
expireTime?: string;
|
||
|
|
|
||
|
|
/** randomKey */
|
||
|
|
randomKey?: number;
|
||
|
|
|
||
|
|
/** recordID */
|
||
|
|
recordID?: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class QRecord {
|
||
|
|
/** current */
|
||
|
|
current?: number;
|
||
|
|
|
||
|
|
/** pageSize */
|
||
|
|
pageSize?: number;
|
||
|
|
|
||
|
|
/** sorter */
|
||
|
|
sorter?: string;
|
||
|
|
|
||
|
|
/** 记录状态 */
|
||
|
|
status?: string;
|
||
|
|
|
||
|
|
/** teacherID */
|
||
|
|
teacherID?: string;
|
||
|
|
|
||
|
|
/** 记录类型 */
|
||
|
|
type?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class QUser {
|
||
|
|
/** 姓名 */
|
||
|
|
name?: string;
|
||
|
|
|
||
|
|
/** 手机号 */
|
||
|
|
phone?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class Resource {
|
||
|
|
/** 上级菜单ID */
|
||
|
|
children?: Array<defs.Resource>;
|
||
|
|
|
||
|
|
/** 资源ID */
|
||
|
|
id?: number;
|
||
|
|
|
||
|
|
/** 是否對所有角色開放 */
|
||
|
|
isForAll?: boolean;
|
||
|
|
|
||
|
|
/** 显示文本 */
|
||
|
|
label?: string;
|
||
|
|
|
||
|
|
/** 请求方法类型 */
|
||
|
|
method?: string;
|
||
|
|
|
||
|
|
/** 资源名称(方法签名) */
|
||
|
|
name?: string;
|
||
|
|
|
||
|
|
/** 上级菜单ID */
|
||
|
|
parentId?: number;
|
||
|
|
|
||
|
|
/** 允许所有访问 */
|
||
|
|
permitAll?: boolean;
|
||
|
|
|
||
|
|
/** 排序 */
|
||
|
|
sort?: number;
|
||
|
|
|
||
|
|
/** 链接 */
|
||
|
|
url?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class ResponseEntity {
|
||
|
|
/** body */
|
||
|
|
body?: object;
|
||
|
|
|
||
|
|
/** statusCode */
|
||
|
|
statusCode?: any;
|
||
|
|
|
||
|
|
/** statusCodeValue */
|
||
|
|
statusCodeValue?: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class ResultVO<T0 = any> {
|
||
|
|
/** code */
|
||
|
|
code?: number;
|
||
|
|
|
||
|
|
/** 数据 */
|
||
|
|
data?: T0;
|
||
|
|
|
||
|
|
/** msg */
|
||
|
|
msg?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class User {
|
||
|
|
/** 地址信息 */
|
||
|
|
address?: string;
|
||
|
|
|
||
|
|
/** authorities */
|
||
|
|
authorities?: Array<defs.GrantedAuthority>;
|
||
|
|
|
||
|
|
/** 创建时间 */
|
||
|
|
createTime?: string;
|
||
|
|
|
||
|
|
/** 创建人 */
|
||
|
|
createUserId?: number;
|
||
|
|
|
||
|
|
/** 删除时间 */
|
||
|
|
deleteTime?: string;
|
||
|
|
|
||
|
|
/** 删除者 */
|
||
|
|
deleteUserId?: number;
|
||
|
|
|
||
|
|
/** 是否启用 1:启用 0:禁用 */
|
||
|
|
enable?: boolean;
|
||
|
|
|
||
|
|
/** enabled */
|
||
|
|
enabled?: boolean;
|
||
|
|
|
||
|
|
/** 用户真实名 */
|
||
|
|
fullName?: string;
|
||
|
|
|
||
|
|
/** 用户id */
|
||
|
|
id?: number;
|
||
|
|
|
||
|
|
/** 最后更新时间 */
|
||
|
|
lastModifyTime?: string;
|
||
|
|
|
||
|
|
/** 最后更新者 */
|
||
|
|
lastModifyUserId?: number;
|
||
|
|
|
||
|
|
/** 用户密码 */
|
||
|
|
password?: string;
|
||
|
|
|
||
|
|
/** 手机号 */
|
||
|
|
phone?: string;
|
||
|
|
|
||
|
|
/** 角色列表 */
|
||
|
|
roles?: Array<string>;
|
||
|
|
|
||
|
|
/** 所属单位 */
|
||
|
|
unitId?: number;
|
||
|
|
|
||
|
|
/** 用户名 */
|
||
|
|
username?: string;
|
||
|
|
|
||
|
|
/** 微信小程序id */
|
||
|
|
wechatId?: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export class UserInfoVO {
|
||
|
|
/** 地址信息 */
|
||
|
|
address?: string;
|
||
|
|
|
||
|
|
/** 真实名 */
|
||
|
|
fullName?: string;
|
||
|
|
|
||
|
|
/** 用户id */
|
||
|
|
id?: number;
|
||
|
|
|
||
|
|
/** 手机号 */
|
||
|
|
phone?: string;
|
||
|
|
|
||
|
|
/** 角色列表 */
|
||
|
|
roles?: Array<string>;
|
||
|
|
|
||
|
|
/** 教师工号 */
|
||
|
|
teacherID?: string;
|
||
|
|
|
||
|
|
/** 所属单位 */
|
||
|
|
unitId?: number;
|
||
|
|
|
||
|
|
/** 微信id */
|
||
|
|
wechatID?: string;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
declare namespace API {
|
||
|
|
/**
|
||
|
|
* 出入校报备记录控制器
|
||
|
|
*/
|
||
|
|
export namespace iORecords {
|
||
|
|
/**
|
||
|
|
* 根据记录ID获取记录详细信息
|
||
|
|
* /api/records/detail
|
||
|
|
*/
|
||
|
|
export namespace getIORecordByID {
|
||
|
|
class Params {
|
||
|
|
/** ID */
|
||
|
|
ID: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.ResultVO<defs.IORecords>>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取报备记录列表
|
||
|
|
* /api/records/list
|
||
|
|
*/
|
||
|
|
export namespace getIORecordsList {
|
||
|
|
export type ResponseType = Promise<defs.ResultVO<Array<defs.IORecords>>>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
bodyParams: defs.QRecord,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Test Controller
|
||
|
|
*/
|
||
|
|
export namespace test {
|
||
|
|
/**
|
||
|
|
* get传参,简单类型,requestParam注解
|
||
|
|
* /test/user/detail
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo {
|
||
|
|
class Params {
|
||
|
|
/** name */
|
||
|
|
name: string;
|
||
|
|
/** phone */
|
||
|
|
phone?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.ResponseEntity>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* post传参,简单类型,requestParam注解
|
||
|
|
* /test/user/detail00
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo00 {
|
||
|
|
class Params {
|
||
|
|
/** name */
|
||
|
|
name: string;
|
||
|
|
/** param */
|
||
|
|
param?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.ResponseEntity>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* get方法传参,类接收,无注解
|
||
|
|
* /test/user/detail1
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo1 {
|
||
|
|
class Params {
|
||
|
|
/** 姓名 */
|
||
|
|
name?: string;
|
||
|
|
/** 手机号 */
|
||
|
|
phone?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.UserInfoVO>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* post方法传参,类接收,无注解
|
||
|
|
* /test/user/detail11
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo11 {
|
||
|
|
class Params {
|
||
|
|
/** 姓名 */
|
||
|
|
name?: string;
|
||
|
|
/** 手机号 */
|
||
|
|
phone?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.UserInfoVO>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* get方法传参,类接收,requestparam注解
|
||
|
|
* /test/user/detail2
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo2 {
|
||
|
|
class Params {
|
||
|
|
/** param */
|
||
|
|
param: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.UserInfoVO>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* post方法传参,类接收,requestparam注解
|
||
|
|
* /test/user/detail22
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo22 {
|
||
|
|
class Params {
|
||
|
|
/** param */
|
||
|
|
param: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<defs.UserInfoVO>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* get方法传参,类接收,requestbody注解
|
||
|
|
* /test/user/detail3
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo3 {
|
||
|
|
export type ResponseType = Promise<defs.UserInfoVO>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
bodyParams: defs.QUser,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* post方法传参,类接收,requestbody注解
|
||
|
|
* /test/user/detail4
|
||
|
|
*/
|
||
|
|
export namespace getUserInfo4 {
|
||
|
|
export type ResponseType = Promise<defs.UserInfoVO>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
bodyParams: defs.QUser,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* post方法传参,类接收,requestbody注解
|
||
|
|
* /test/user/detailResource
|
||
|
|
*/
|
||
|
|
export namespace getUserInfoResource {
|
||
|
|
export type ResponseType = Promise<defs.ResultVO<defs.Resource>>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
bodyParams: defs.Resource,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 用户管理
|
||
|
|
*/
|
||
|
|
export namespace user {
|
||
|
|
/**
|
||
|
|
* 获取当前用户信息
|
||
|
|
* /api/user/current
|
||
|
|
*/
|
||
|
|
export namespace getCurrentUser {
|
||
|
|
export type ResponseType = Promise<defs.ResultVO<defs.UserInfoVO>>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* 获取用户列表
|
||
|
|
* /api/user/list
|
||
|
|
*/
|
||
|
|
export namespace getUserList {
|
||
|
|
class Params {
|
||
|
|
/** 姓名 */
|
||
|
|
name?: string;
|
||
|
|
/** 手机号 */
|
||
|
|
phone?: string;
|
||
|
|
}
|
||
|
|
|
||
|
|
export type ResponseType = Promise<
|
||
|
|
defs.ResultVO<defs.ListResultVO<defs.User>>
|
||
|
|
>;
|
||
|
|
|
||
|
|
export const URL: string;
|
||
|
|
|
||
|
|
export function request(
|
||
|
|
params: Params,
|
||
|
|
options?: WechatMiniprogram.RequestOption,
|
||
|
|
): ResponseType;
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|