commit
391fec3758
@ -1,41 +0,0 @@
|
|||||||
export type ${simpleClassName}VO = {
|
|
||||||
#foreach ($column in $columns)
|
|
||||||
#if ($column.createOperation || $column.updateOperation)
|
|
||||||
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
|
||||||
${column.javaField}: number
|
|
||||||
#elseif(${column.javaType.toLowerCase()} == "date")
|
|
||||||
${column.javaField}: string
|
|
||||||
#else
|
|
||||||
${column.javaField}: ${column.javaType.toLowerCase()}
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ${simpleClassName}PageReqVO = {
|
|
||||||
#foreach ($column in $columns)
|
|
||||||
#if (${column.listOperation})##查询操作
|
|
||||||
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
|
||||||
${column.javaField}: number
|
|
||||||
#elseif(${column.javaType.toLowerCase()} == "date")
|
|
||||||
${column.javaField}: string
|
|
||||||
#else
|
|
||||||
${column.javaField}: ${column.javaType.toLowerCase()}
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
}
|
|
||||||
|
|
||||||
export type ${simpleClassName}ExcelReqVO = {
|
|
||||||
#foreach ($column in $columns)
|
|
||||||
#if (${column.listOperation})##查询操作
|
|
||||||
#if(${column.javaType.toLowerCase()} == "long" || ${column.javaType.toLowerCase()} == "integer")
|
|
||||||
${column.javaField}: number
|
|
||||||
#elseif(${column.javaType.toLowerCase()} == "date")
|
|
||||||
${column.javaField}: string
|
|
||||||
#else
|
|
||||||
${column.javaField}: ${column.javaType.toLowerCase()}
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
#end
|
|
||||||
}
|
|
||||||
@ -1,6 +1,5 @@
|
|||||||
<script setup lang="ts">
|
|
||||||
</script>
|
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<ContentWrap title="{{ upperFirstName }}"> {{ name }} </ContentWrap>
|
<ContentWrap title="{{ upperFirstName }}"> {{ name }} </ContentWrap>
|
||||||
</template>
|
</template>
|
||||||
|
<script setup lang="ts" name="{{ name }}">
|
||||||
|
</script>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,14 +0,0 @@
|
|||||||
export type ApiAccessLogVO = {
|
|
||||||
id: number
|
|
||||||
traceId: string
|
|
||||||
userId: string
|
|
||||||
userType: string
|
|
||||||
applicationName: string
|
|
||||||
requestMethod: string
|
|
||||||
requestParams: string
|
|
||||||
requestUrl: string
|
|
||||||
beginTime: string
|
|
||||||
endTIme: string
|
|
||||||
duration: string
|
|
||||||
resultCode: number
|
|
||||||
}
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
export type ApiErrorLogVO = {
|
|
||||||
id: number
|
|
||||||
userId: string
|
|
||||||
userIp: string
|
|
||||||
userAgent: string
|
|
||||||
userType: string
|
|
||||||
applicationName: string
|
|
||||||
requestMethod: string
|
|
||||||
requestParams: string
|
|
||||||
requestUrl: string
|
|
||||||
exceptionTime: string
|
|
||||||
exceptionName: string
|
|
||||||
exceptionStackTrace: string
|
|
||||||
processUserId: string
|
|
||||||
processStatus: number
|
|
||||||
resultCode: number
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
export type ConfigVO = {
|
|
||||||
id: number
|
|
||||||
group: string
|
|
||||||
name: string
|
|
||||||
key: string
|
|
||||||
value: string
|
|
||||||
type: string
|
|
||||||
visible: boolean
|
|
||||||
remark: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
export type DataSourceConfigVO = {
|
|
||||||
id: number
|
|
||||||
name: string
|
|
||||||
url: string
|
|
||||||
username: string
|
|
||||||
password: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -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
|
|
||||||
primary: number
|
|
||||||
visible: boolean
|
|
||||||
config: ConfigType
|
|
||||||
remark: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
export type FileVO = {
|
|
||||||
id: number
|
|
||||||
path: string
|
|
||||||
url: string
|
|
||||||
size: string
|
|
||||||
type: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -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,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,32 +1,47 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
import type { DeptVO, DeptListReqVO } from './types'
|
|
||||||
|
export interface DeptVO {
|
||||||
|
id?: number
|
||||||
|
name: string
|
||||||
|
parentId: number
|
||||||
|
status: number
|
||||||
|
sort: number
|
||||||
|
leaderUserId: number
|
||||||
|
phone: string
|
||||||
|
email: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface DeptPageReqVO {
|
||||||
|
name?: string
|
||||||
|
status?: number
|
||||||
|
}
|
||||||
|
|
||||||
// 查询部门(精简)列表
|
// 查询部门(精简)列表
|
||||||
export const listSimpleDeptApi = () => {
|
export const listSimpleDeptApi = async () => {
|
||||||
return request.get({ url: '/system/dept/list-all-simple' })
|
return await request.get({ url: '/system/dept/list-all-simple' })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询部门列表
|
// 查询部门列表
|
||||||
export const getDeptPageApi = (params: DeptListReqVO) => {
|
export const getDeptPageApi = async (params: DeptPageReqVO) => {
|
||||||
return request.get({ url: '/system/dept/list', params })
|
return await request.get({ url: '/system/dept/list', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 查询部门详情
|
// 查询部门详情
|
||||||
export const getDeptApi = (id: number) => {
|
export const getDeptApi = async (id: number) => {
|
||||||
return request.get({ url: '/system/dept/get?id=' + id })
|
return await request.get({ url: '/system/dept/get?id=' + id })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 新增部门
|
// 新增部门
|
||||||
export const createDeptApi = (data: DeptVO) => {
|
export const createDeptApi = async (data: DeptVO) => {
|
||||||
return request.post({ url: '/system/dept/create', data: data })
|
return await request.post({ url: '/system/dept/create', data: data })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改部门
|
// 修改部门
|
||||||
export const updateDeptApi = (params: DeptVO) => {
|
export const updateDeptApi = async (params: DeptVO) => {
|
||||||
return request.put({ url: '/system/dept/update', data: params })
|
return await request.put({ url: '/system/dept/update', data: params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 删除部门
|
// 删除部门
|
||||||
export const deleteDeptApi = (id: number) => {
|
export const deleteDeptApi = async (id: number) => {
|
||||||
return request.delete({ url: '/system/dept/delete?id=' + id })
|
return await request.delete({ url: '/system/dept/delete?id=' + id })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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,9 +0,0 @@
|
|||||||
export type ErrorCodeVO = {
|
|
||||||
id: number
|
|
||||||
type: number
|
|
||||||
applicationName: string
|
|
||||||
code: number
|
|
||||||
message: string
|
|
||||||
memo: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,10 +1,29 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface LoginLogVO {
|
||||||
|
id: number
|
||||||
|
logType: number
|
||||||
|
traceId: number
|
||||||
|
userType: number
|
||||||
|
username: string
|
||||||
|
status: number
|
||||||
|
userIp: string
|
||||||
|
userAgent: string
|
||||||
|
createTime: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface LoginLogReqVO extends PageParam {
|
||||||
|
userIp?: string
|
||||||
|
username?: string
|
||||||
|
status?: boolean
|
||||||
|
createTime?: string[]
|
||||||
|
}
|
||||||
|
|
||||||
// 查询登录日志列表
|
// 查询登录日志列表
|
||||||
export const getLoginLogPageApi = (params) => {
|
export const getLoginLogPageApi = (params: LoginLogReqVO) => {
|
||||||
return request.get({ url: '/system/login-log/page', params })
|
return request.get({ url: '/system/login-log/page', params })
|
||||||
}
|
}
|
||||||
// 导出登录日志
|
// 导出登录日志
|
||||||
export const exportLoginLogApi = (params) => {
|
export const exportLoginLogApi = (params: LoginLogReqVO) => {
|
||||||
return request.download({ url: '/system/login-log/export', params })
|
return request.download({ url: '/system/login-log/export', params })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,11 +0,0 @@
|
|||||||
export type LoginLogVO = {
|
|
||||||
id: number
|
|
||||||
logType: number
|
|
||||||
traceId: number
|
|
||||||
userType: number
|
|
||||||
username: string
|
|
||||||
status: number
|
|
||||||
userIp: string
|
|
||||||
userAgent: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
export type MenuVO = {
|
|
||||||
id: number
|
|
||||||
name: string
|
|
||||||
permission: string
|
|
||||||
type: number
|
|
||||||
sort: number
|
|
||||||
parentId: number
|
|
||||||
path: string
|
|
||||||
icon: string
|
|
||||||
component: string
|
|
||||||
status: number
|
|
||||||
visible: boolean
|
|
||||||
keepAlive: boolean
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,12 +0,0 @@
|
|||||||
export type NoticeVO = {
|
|
||||||
id: number
|
|
||||||
title: string
|
|
||||||
type: number
|
|
||||||
content: string
|
|
||||||
status: number
|
|
||||||
remark: string
|
|
||||||
creator: string
|
|
||||||
createTime: string
|
|
||||||
updater: string
|
|
||||||
updateTime: string
|
|
||||||
}
|
|
||||||
@ -1,20 +0,0 @@
|
|||||||
export type OAuth2ClientVo = {
|
|
||||||
id: number
|
|
||||||
clientId: string
|
|
||||||
secret: string
|
|
||||||
name: string
|
|
||||||
logo: string
|
|
||||||
description: string
|
|
||||||
status: number
|
|
||||||
accessTokenValiditySeconds: number
|
|
||||||
refreshTokenValiditySeconds: number
|
|
||||||
redirectUris: string[]
|
|
||||||
autoApprove: boolean
|
|
||||||
authorizedGrantTypes: string[]
|
|
||||||
scopes: string[]
|
|
||||||
authorities: string[]
|
|
||||||
resourceIds: string[]
|
|
||||||
additionalInformation: string
|
|
||||||
isAdditionalInformationJson: boolean
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
export type OAuth2TokenVo = {
|
|
||||||
id: number
|
|
||||||
accessToken: string
|
|
||||||
refreshToken: string
|
|
||||||
userId: number
|
|
||||||
userType: number
|
|
||||||
clientId: string
|
|
||||||
createTime: string
|
|
||||||
expiresTime: string
|
|
||||||
}
|
|
||||||
@ -1,10 +1,41 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export type OperateLogVO = {
|
||||||
|
id: number
|
||||||
|
userNickname: string
|
||||||
|
traceId: string
|
||||||
|
userId: number
|
||||||
|
module: string
|
||||||
|
name: string
|
||||||
|
type: number
|
||||||
|
content: string
|
||||||
|
exts: object
|
||||||
|
requestMethod: string
|
||||||
|
requestUrl: string
|
||||||
|
userIp: string
|
||||||
|
userAgent: string
|
||||||
|
javaMethod: string
|
||||||
|
javaMethodArgs: string
|
||||||
|
startTime: string
|
||||||
|
duration: number
|
||||||
|
resultCode: number
|
||||||
|
resultMsg: string
|
||||||
|
resultData: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface OperateLogPageReqVO extends PageParam {
|
||||||
|
module?: string
|
||||||
|
userNickname?: string
|
||||||
|
type?: number
|
||||||
|
success?: boolean
|
||||||
|
startTime?: string[]
|
||||||
|
}
|
||||||
|
|
||||||
// 查询操作日志列表
|
// 查询操作日志列表
|
||||||
export const getOperateLogPageApi = (params) => {
|
export const getOperateLogPageApi = (params: OperateLogPageReqVO) => {
|
||||||
return request.get({ url: '/system/operate-log/page', params })
|
return request.get({ url: '/system/operate-log/page', params })
|
||||||
}
|
}
|
||||||
// 导出操作日志
|
// 导出操作日志
|
||||||
export const exportOperateLogApi = (params) => {
|
export const exportOperateLogApi = (params: OperateLogPageReqVO) => {
|
||||||
return request.download({ url: '/system/operate-log/export', params })
|
return request.download({ url: '/system/operate-log/export', params })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,22 +0,0 @@
|
|||||||
export type OperateLogVO = {
|
|
||||||
id: number
|
|
||||||
userNickname: string
|
|
||||||
traceId: string
|
|
||||||
userId: number
|
|
||||||
module: string
|
|
||||||
name: string
|
|
||||||
type: number
|
|
||||||
content: string
|
|
||||||
exts: object
|
|
||||||
requestMethod: string
|
|
||||||
requestUrl: string
|
|
||||||
userIp: string
|
|
||||||
userAgent: string
|
|
||||||
javaMethod: string
|
|
||||||
javaMethodArgs: string
|
|
||||||
startTime: string
|
|
||||||
duration: number
|
|
||||||
resultCode: number
|
|
||||||
resultMsg: string
|
|
||||||
resultData: string
|
|
||||||
}
|
|
||||||
@ -1,15 +0,0 @@
|
|||||||
export type PermissionAssignUserRoleReqVO = {
|
|
||||||
userId: number
|
|
||||||
roleIds: number[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionAssignRoleMenuReqVO = {
|
|
||||||
roleId: number
|
|
||||||
menuIds: number[]
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PermissionAssignRoleDataScopeReqVO = {
|
|
||||||
roleId: number
|
|
||||||
dataScope: number
|
|
||||||
dataScopeDeptIds: number[]
|
|
||||||
}
|
|
||||||
@ -1,24 +0,0 @@
|
|||||||
export type PostVO = {
|
|
||||||
id?: number
|
|
||||||
name: string
|
|
||||||
code: string
|
|
||||||
sort: number
|
|
||||||
status: number
|
|
||||||
remark: string
|
|
||||||
createTime?: string
|
|
||||||
}
|
|
||||||
|
|
||||||
// TODO @星语:要不要搞个 Page 基类呀?和后端对应
|
|
||||||
export type PostPageReqVO = {
|
|
||||||
code: string
|
|
||||||
name: string
|
|
||||||
status?: number
|
|
||||||
pageSize?: number
|
|
||||||
pageNo?: number
|
|
||||||
}
|
|
||||||
|
|
||||||
export type PostExportReqVO = {
|
|
||||||
code: string
|
|
||||||
name: string
|
|
||||||
status?: number
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
export type RoleVO = {
|
|
||||||
id: number
|
|
||||||
name: string
|
|
||||||
code: string
|
|
||||||
sort: number
|
|
||||||
status: number
|
|
||||||
type: number
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
export type SensitiveWordVO = {
|
|
||||||
id: number
|
|
||||||
name: string
|
|
||||||
status: number
|
|
||||||
description: string
|
|
||||||
tags: string
|
|
||||||
type: number
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,10 +0,0 @@
|
|||||||
export type SmsChannelVO = {
|
|
||||||
id: number
|
|
||||||
status: number
|
|
||||||
signature: string
|
|
||||||
remark: string
|
|
||||||
apiKey: string
|
|
||||||
apiSecret: string
|
|
||||||
callbackUrl: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,11 +1,39 @@
|
|||||||
import request from '@/config/axios'
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface SmsLogVO {
|
||||||
|
id: number
|
||||||
|
idchannelId: number
|
||||||
|
templateId: number
|
||||||
|
mobile: string
|
||||||
|
userId: number
|
||||||
|
userType: number
|
||||||
|
sendStatus: number
|
||||||
|
receiveStatus: number
|
||||||
|
templateType: number
|
||||||
|
templateContent: string
|
||||||
|
templateParams: Map<string, object>
|
||||||
|
apiTemplateId: string
|
||||||
|
sendTime: string
|
||||||
|
createTime: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface SmsLogPageReqVO extends PageParam {
|
||||||
|
signature?: string
|
||||||
|
code?: string
|
||||||
|
status?: number
|
||||||
|
}
|
||||||
|
export interface SmsLogExportReqVO {
|
||||||
|
code?: string
|
||||||
|
name?: string
|
||||||
|
status?: number
|
||||||
|
}
|
||||||
|
|
||||||
// 查询短信日志列表
|
// 查询短信日志列表
|
||||||
export const getSmsLogPageApi = (params) => {
|
export const getSmsLogPageApi = (params: SmsLogPageReqVO) => {
|
||||||
return request.get({ url: '/system/sms-log/page', params })
|
return request.get({ url: '/system/sms-log/page', params })
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出短信日志
|
// 导出短信日志
|
||||||
export const exportSmsLogApi = (params) => {
|
export const exportSmsLogApi = (params: SmsLogExportReqVO) => {
|
||||||
return request.download({ url: '/system/sms-log/export', params })
|
return request.download({ url: '/system/sms-log/export', params })
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,9 +0,0 @@
|
|||||||
export type SmsLogVO = {
|
|
||||||
id: number
|
|
||||||
idchannelId: number
|
|
||||||
templateId: number
|
|
||||||
mobile: string
|
|
||||||
sendStatus: number
|
|
||||||
receiveStatus: number
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,19 +0,0 @@
|
|||||||
export type SmsTemplateVO = {
|
|
||||||
id: number
|
|
||||||
type: number
|
|
||||||
status: number
|
|
||||||
code: string
|
|
||||||
name: string
|
|
||||||
content: string
|
|
||||||
remark: string
|
|
||||||
apiTemplateId: string
|
|
||||||
channelId: number
|
|
||||||
channelCode: string
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export type SmsSendVO = {
|
|
||||||
mobile: string
|
|
||||||
templateCode: string
|
|
||||||
templateParams: string
|
|
||||||
}
|
|
||||||
@ -1,14 +0,0 @@
|
|||||||
export type TenantVO = {
|
|
||||||
id: number
|
|
||||||
name: string
|
|
||||||
packageId: number
|
|
||||||
contactName: string
|
|
||||||
contactMobile: string
|
|
||||||
username: string
|
|
||||||
password: string
|
|
||||||
accountCount: number
|
|
||||||
expireTime: string
|
|
||||||
domain: string
|
|
||||||
status: number
|
|
||||||
createTime: string
|
|
||||||
}
|
|
||||||
@ -1,11 +0,0 @@
|
|||||||
export type TenantPackageVO = {
|
|
||||||
id: number
|
|
||||||
name: string
|
|
||||||
status: number
|
|
||||||
remark: string
|
|
||||||
creator: string
|
|
||||||
createTime: string
|
|
||||||
updater: string
|
|
||||||
updateTime: string
|
|
||||||
menuIds: string[]
|
|
||||||
}
|
|
||||||
@ -0,0 +1,77 @@
|
|||||||
|
import request from '@/config/axios'
|
||||||
|
|
||||||
|
export interface ProfileDept {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
export interface ProfileRole {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
export interface ProfilePost {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
export interface SocialUser {
|
||||||
|
id: number
|
||||||
|
type: number
|
||||||
|
openid: string
|
||||||
|
token: string
|
||||||
|
rawTokenInfo: string
|
||||||
|
nickname: string
|
||||||
|
avatar: string
|
||||||
|
rawUserInfo: string
|
||||||
|
code: string
|
||||||
|
state: string
|
||||||
|
}
|
||||||
|
export interface ProfileVO {
|
||||||
|
id: number
|
||||||
|
username: string
|
||||||
|
nickname: string
|
||||||
|
dept: ProfileDept
|
||||||
|
roles: ProfileRole[]
|
||||||
|
posts: ProfilePost[]
|
||||||
|
socialUsers: SocialUser[]
|
||||||
|
email: string
|
||||||
|
mobile: string
|
||||||
|
sex: number
|
||||||
|
avatar: string
|
||||||
|
status: number
|
||||||
|
remark: string
|
||||||
|
loginIp: string
|
||||||
|
loginDate: Date
|
||||||
|
createTime: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface UserProfileUpdateReqVO {
|
||||||
|
nickname: string
|
||||||
|
email: string
|
||||||
|
mobile: string
|
||||||
|
sex: number
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户个人信息
|
||||||
|
export const getUserProfileApi = () => {
|
||||||
|
return request.get({ url: '/system/user/profile/get' })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改用户个人信息
|
||||||
|
export const updateUserProfileApi = (data: UserProfileUpdateReqVO) => {
|
||||||
|
return request.put({ url: '/system/user/profile/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 用户密码重置
|
||||||
|
export const updateUserPwdApi = (oldPassword: string, newPassword: string) => {
|
||||||
|
return request.put({
|
||||||
|
url: '/system/user/profile/update-password',
|
||||||
|
data: {
|
||||||
|
oldPassword: oldPassword,
|
||||||
|
newPassword: newPassword
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// 用户头像上传
|
||||||
|
export const uploadAvatarApi = (data) => {
|
||||||
|
return request.put({ url: '/system/user/profile/update-avatar', data })
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue