mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-19 13:35:07 +08:00
refactor: api type
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type ConfigVO = {
|
||||
export interface ConfigVO {
|
||||
id: number
|
||||
group: string
|
||||
name: string
|
||||
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type DataSourceConfigVO = {
|
||||
export interface DataSourceConfigVO {
|
||||
id: number
|
||||
name: string
|
||||
url: string
|
||||
|
@ -1,8 +0,0 @@
|
||||
export type DataSourceConfigVO = {
|
||||
id: number
|
||||
name: string
|
||||
url: string
|
||||
username: string
|
||||
password: string
|
||||
createTime: string
|
||||
}
|
@ -1,5 +1,28 @@
|
||||
import request from '@/config/axios'
|
||||
import type { FileConfigVO } from './types'
|
||||
|
||||
export interface ConfigType {
|
||||
basePath: string
|
||||
host: string
|
||||
port: string
|
||||
username: string
|
||||
password: string
|
||||
mode: string
|
||||
endpoint: string
|
||||
bucket: string
|
||||
accessKey: string
|
||||
accessSecret: string
|
||||
domain: string
|
||||
}
|
||||
export interface FileConfigVO {
|
||||
id: number
|
||||
name: string
|
||||
storage: string
|
||||
master: boolean
|
||||
visible: boolean
|
||||
config: ConfigType
|
||||
remark: string
|
||||
createTime: string
|
||||
}
|
||||
|
||||
// 查询文件配置列表
|
||||
export const getFileConfigPageApi = (params) => {
|
||||
|
@ -1,23 +0,0 @@
|
||||
export type ConfigType = {
|
||||
basePath: string
|
||||
host: string
|
||||
port: string
|
||||
username: string
|
||||
password: string
|
||||
mode: string
|
||||
endpoint: string
|
||||
bucket: string
|
||||
accessKey: string
|
||||
accessSecret: string
|
||||
domain: string
|
||||
}
|
||||
export type FileConfigVO = {
|
||||
id: number
|
||||
name: string
|
||||
storage: string
|
||||
master: boolean
|
||||
visible: boolean
|
||||
config: ConfigType
|
||||
remark: string
|
||||
createTime: string
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type FileVO = {
|
||||
export interface FileVO {
|
||||
id: number
|
||||
path: string
|
||||
url: string
|
||||
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type JobVO = {
|
||||
export interface JobVO {
|
||||
id: number
|
||||
name: string
|
||||
status: number
|
||||
|
@ -1,11 +0,0 @@
|
||||
export type JobVO = {
|
||||
id: number
|
||||
name: string
|
||||
status: number
|
||||
handlerName: string
|
||||
handlerParam: string
|
||||
cronExpression: string
|
||||
retryCount: number
|
||||
retryInterval: number
|
||||
monitorTimeout: number
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type JobLogVO = {
|
||||
export interface JobLogVO {
|
||||
id: number
|
||||
jobId: number
|
||||
handlerName: string
|
||||
|
@ -1,13 +0,0 @@
|
||||
export type JobLogVO = {
|
||||
id: number
|
||||
jobId: number
|
||||
handlerName: string
|
||||
handlerParam: string
|
||||
cronExpression: string
|
||||
executeIndex: string
|
||||
beginTime: Date
|
||||
endTime: Date
|
||||
duration: string
|
||||
status: number
|
||||
createTime: string
|
||||
}
|
@ -1,5 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
export type DeptVO = {
|
||||
|
||||
export interface DeptVO {
|
||||
id?: number
|
||||
name: string
|
||||
parentId: number
|
||||
|
@ -1,15 +0,0 @@
|
||||
export type DeptVO = {
|
||||
id: number
|
||||
name: string
|
||||
parentId: number
|
||||
status: number
|
||||
sort: number
|
||||
leaderUserId: number
|
||||
phone: string
|
||||
email: string
|
||||
}
|
||||
|
||||
export type DeptListReqVO = {
|
||||
name: string
|
||||
status: number
|
||||
}
|
@ -1,4 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface ErrorCodeVO {
|
||||
id: number
|
||||
type: number
|
||||
|
@ -1,4 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface NoticeVO {
|
||||
id: number
|
||||
title: string
|
||||
|
@ -1,4 +1,5 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export interface OAuth2ClientVO {
|
||||
id: number
|
||||
clientId: string
|
||||
|
@ -22,6 +22,7 @@ export type OperateLogVO = {
|
||||
resultMsg: string
|
||||
resultData: string
|
||||
}
|
||||
|
||||
export interface OperateLogPageReqVO extends PageParam {
|
||||
module?: string
|
||||
userNickname?: string
|
||||
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type RoleVO = {
|
||||
export interface RoleVO {
|
||||
id: number
|
||||
name: string
|
||||
code: string
|
||||
|
@ -1,6 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export type SensitiveWordVO = {
|
||||
export interface SensitiveWordVO {
|
||||
id: number
|
||||
name: string
|
||||
status: number
|
||||
|
@ -1,5 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
export type SmsChannelVO = {
|
||||
|
||||
export interface SmsChannelVO {
|
||||
id: number
|
||||
status: number
|
||||
signature: string
|
||||
|
@ -1,5 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
export type SmsLogVO = {
|
||||
|
||||
export interface SmsLogVO {
|
||||
id: number
|
||||
idchannelId: number
|
||||
templateId: number
|
||||
|
@ -1,5 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
export type SmsTemplateVO = {
|
||||
|
||||
export interface SmsTemplateVO {
|
||||
id: number
|
||||
type: number
|
||||
status: number
|
||||
|
@ -1,5 +1,6 @@
|
||||
import request from '@/config/axios'
|
||||
export type UserVO = {
|
||||
|
||||
export interface UserVO {
|
||||
id: number
|
||||
username: string
|
||||
nickname: string
|
||||
|
Reference in New Issue
Block a user