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.
521 lines
10 KiB
521 lines
10 KiB
type ObjectMap<Key extends string | number | symbol = any, Value = any> = {
|
|
[key in Key]: Value;
|
|
};
|
|
|
|
declare namespace defs {
|
|
export class Department {
|
|
/** 部门名称 */
|
|
department?: string;
|
|
|
|
/** 部门编码 */
|
|
departmentID?: string;
|
|
}
|
|
|
|
export class GrantedAuthority {
|
|
/** authority */
|
|
authority?: string;
|
|
}
|
|
|
|
export class IORecords {
|
|
/** 出入校时间 */
|
|
commitTime?: string;
|
|
|
|
/** 院级审核时间 */
|
|
deptAuditTime?: string;
|
|
|
|
/** 院级审核人 */
|
|
deptAuditor?: defs.User;
|
|
|
|
/** 院级审核人 */
|
|
deptAuditorID?: number;
|
|
|
|
/** 报备记录ID */
|
|
id?: number;
|
|
|
|
/** 校内居住地 */
|
|
innerResidence?: string;
|
|
|
|
/** 报备单类型:1-出;0-入 */
|
|
ioType?: string;
|
|
|
|
/** 校外居住地 */
|
|
outerResidence?: string;
|
|
|
|
/** 二维码token */
|
|
qrToken?: defs.QRToken;
|
|
|
|
/** 申请事由 */
|
|
reason?: string;
|
|
|
|
/** 校级审核时间 */
|
|
schoolAuditTime?: string;
|
|
|
|
/** 校级审核人 */
|
|
schoolAuditor?: defs.User;
|
|
|
|
/** 校级审核人 */
|
|
schoolAuditorID?: number;
|
|
|
|
/** 单据状态:SUBMIT-提交待审核;DEPT_PASS-院级审核通过;SCHOOL_PASS-校级审核通过;VERIFY_PASS-核验通过;DEPT_DENY-院级审核不通过;SCHOOL_DENY-校级审核不通过;VERIFY_DENY-核验不通过;INVALID-无效 */
|
|
status?: string;
|
|
|
|
/** 教师 */
|
|
teacher?: defs.User;
|
|
|
|
/** 教师工号 */
|
|
teacherID?: string;
|
|
|
|
/** 核验时间 */
|
|
validateTime?: string;
|
|
|
|
/** 核验人 */
|
|
validator?: defs.User;
|
|
|
|
/** 核验人 */
|
|
validatorID?: number;
|
|
}
|
|
|
|
export class ListResultVO<T0 = any> {
|
|
/** 当前页码 */
|
|
current?: number;
|
|
|
|
/** 列表数据 */
|
|
list?: Array<T0>;
|
|
|
|
/** 每页记录数 */
|
|
pageSize?: number;
|
|
|
|
/** 记录总数 */
|
|
total?: number;
|
|
}
|
|
|
|
export class QRToken {
|
|
/** expireTime */
|
|
expireTime?: number;
|
|
|
|
/** recordID */
|
|
recordID?: number;
|
|
}
|
|
|
|
export class QRecord {
|
|
/** current */
|
|
current?: number;
|
|
|
|
/** pageSize */
|
|
pageSize?: number;
|
|
|
|
/** sorter */
|
|
sorter?: string;
|
|
|
|
/** 记录状态 */
|
|
status?: string;
|
|
|
|
/** 教师工号 */
|
|
teacherID?: string;
|
|
|
|
/** 记录类型 */
|
|
type?: string;
|
|
|
|
/** 用户id */
|
|
userID?: number;
|
|
}
|
|
|
|
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>;
|
|
|
|
/** 所属单位 */
|
|
departmentID?: number;
|
|
|
|
/** 所属学院 */
|
|
dept?: defs.Department;
|
|
|
|
/** 是否在校 1:在校 0:未在 */
|
|
enabled?: boolean;
|
|
|
|
/** 是否在校 1:在校 0:未在 */
|
|
isInSchool?: boolean;
|
|
|
|
/** 手机号 */
|
|
mobile?: string;
|
|
|
|
/** 用户姓名 */
|
|
name?: string;
|
|
|
|
/** 密码 */
|
|
password?: string;
|
|
|
|
/** 角色列表 */
|
|
roles?: Array<string>;
|
|
|
|
/** 教师工号 */
|
|
teacherID?: string;
|
|
|
|
/** 用户id */
|
|
userID?: number;
|
|
|
|
/** username */
|
|
username?: string;
|
|
|
|
/** 微信小程序id */
|
|
wechatID?: number;
|
|
}
|
|
}
|
|
|
|
declare namespace API {
|
|
/**
|
|
* 出入校报备记录控制器
|
|
*/
|
|
export namespace iORecords {
|
|
/**
|
|
* 新增一条报备记录
|
|
* /api/records/add
|
|
*/
|
|
export namespace addIORecord {
|
|
export type ResponseType = Promise<defs.ResultVO<number>>;
|
|
|
|
export const URL: string;
|
|
|
|
export function request(
|
|
bodyParams: defs.IORecords,
|
|
options?: WechatMiniprogram.RequestOption,
|
|
): ResponseType;
|
|
}
|
|
|
|
/**
|
|
* 获取报备记录列表
|
|
* /api/records/audit-list
|
|
*/
|
|
export namespace getIORecordsAuditList {
|
|
export type ResponseType = Promise<defs.ResultVO<Array<defs.IORecords>>>;
|
|
|
|
export const URL: string;
|
|
|
|
export function request(
|
|
bodyParams: defs.QRecord,
|
|
options?: WechatMiniprogram.RequestOption,
|
|
): ResponseType;
|
|
}
|
|
|
|
/**
|
|
* 根据记录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.User>;
|
|
|
|
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.User>;
|
|
|
|
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.User>;
|
|
|
|
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.User>;
|
|
|
|
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.User>;
|
|
|
|
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.User>;
|
|
|
|
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.User>>;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
|