refactor: api type

This commit is contained in:
xingyu4j
2022-11-22 17:12:45 +08:00
parent 92bcaa04d1
commit 7b40e5a5e4
24 changed files with 49 additions and 89 deletions

View File

@ -1,5 +1,6 @@
import request from '@/config/axios'
export type DeptVO = {
export interface DeptVO {
id?: number
name: string
parentId: number

View File

@ -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
}

View File

@ -1,4 +1,5 @@
import request from '@/config/axios'
export interface ErrorCodeVO {
id: number
type: number

View File

@ -1,4 +1,5 @@
import request from '@/config/axios'
export interface NoticeVO {
id: number
title: string

View File

@ -1,4 +1,5 @@
import request from '@/config/axios'
export interface OAuth2ClientVO {
id: number
clientId: string

View File

@ -22,6 +22,7 @@ export type OperateLogVO = {
resultMsg: string
resultData: string
}
export interface OperateLogPageReqVO extends PageParam {
module?: string
userNickname?: string

View File

@ -1,6 +1,6 @@
import request from '@/config/axios'
export type RoleVO = {
export interface RoleVO {
id: number
name: string
code: string

View File

@ -1,6 +1,6 @@
import request from '@/config/axios'
export type SensitiveWordVO = {
export interface SensitiveWordVO {
id: number
name: string
status: number

View File

@ -1,5 +1,6 @@
import request from '@/config/axios'
export type SmsChannelVO = {
export interface SmsChannelVO {
id: number
status: number
signature: string

View File

@ -1,5 +1,6 @@
import request from '@/config/axios'
export type SmsLogVO = {
export interface SmsLogVO {
id: number
idchannelId: number
templateId: number

View File

@ -1,5 +1,6 @@
import request from '@/config/axios'
export type SmsTemplateVO = {
export interface SmsTemplateVO {
id: number
type: number
status: number

View File

@ -1,5 +1,6 @@
import request from '@/config/axios'
export type UserVO = {
export interface UserVO {
id: number
username: string
nickname: string