mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-24 03:20:47 +08:00
初始化admin pc端
This commit is contained in:
44
admin/src/api/app.ts
Normal file
44
admin/src/api/app.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export function apiFileCateAdd(params: any) {
|
||||
return request.post('/file/addCate', params)
|
||||
}
|
||||
|
||||
export function apiFileCateEdit(params: { id: number; name: string }) {
|
||||
return request.post('/file/editCate', params)
|
||||
}
|
||||
|
||||
// 文件分类删除
|
||||
export function apiFileCateDelete(params: { id: number }) {
|
||||
return request.post('/file/delCate', params)
|
||||
}
|
||||
|
||||
// 文件分类列表
|
||||
export function apiFileCateLists(params: any) {
|
||||
return request.get('/file/listCate', { params })
|
||||
}
|
||||
|
||||
// 文件列表
|
||||
export function apiFileList(params: any) {
|
||||
return request.get('/file/lists', { params })
|
||||
}
|
||||
|
||||
// 文件删除
|
||||
export function apiFileDelete(params: { ids: any[] }) {
|
||||
return request.post('/file/delete', params)
|
||||
}
|
||||
|
||||
// 文件移动
|
||||
export function apiFileMove(params: { ids: any[]; cid: number }) {
|
||||
return request.post('/file/move', params)
|
||||
}
|
||||
|
||||
// 文件重命名
|
||||
export function apiFileRename(params: { id: number; name: string }) {
|
||||
return request.post('/file/rename', params)
|
||||
}
|
||||
|
||||
// 配置
|
||||
export function apiConfig() {
|
||||
return request.get('/config/getConfig')
|
||||
}
|
||||
31
admin/src/api/application.ts
Normal file
31
admin/src/api/application.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 短信通知列表
|
||||
export function apiNoticeLists(params: any) {
|
||||
return request.get('/notice.notice/settingLists', { params })
|
||||
}
|
||||
|
||||
// 短信通知详情
|
||||
export function apiNoticeDetail(params: any) {
|
||||
return request.get('/notice.notice/detail', { params })
|
||||
}
|
||||
|
||||
// 设置短信通知
|
||||
export function apiNoticeEdit(params: any) {
|
||||
return request.post('/notice.notice/set', params)
|
||||
}
|
||||
|
||||
// 短信设置列表
|
||||
export function apiSmsLists() {
|
||||
return request.get('/notice.sms_config/getConfig')
|
||||
}
|
||||
|
||||
// 短信设置详情
|
||||
export function apiSmsDetail(params: any) {
|
||||
return request.get('/notice.sms_config/detail', { params })
|
||||
}
|
||||
|
||||
// 设置短信通知
|
||||
export function apiSmsEdit(params: any) {
|
||||
return request.post('/notice.sms_config/setConfig', params)
|
||||
}
|
||||
55
admin/src/api/auth.ts
Normal file
55
admin/src/api/auth.ts
Normal file
@@ -0,0 +1,55 @@
|
||||
import request from '@/utils/request'
|
||||
import { terminal } from '@/config/app'
|
||||
|
||||
export function adminLists(params: any) {
|
||||
return request.get('/auth.admin/lists', { params })
|
||||
}
|
||||
|
||||
// 管理员添加
|
||||
export function apiAdminAdd(params: any) {
|
||||
return request.post('/auth.admin/add', params)
|
||||
}
|
||||
|
||||
export function apiAdminEdit(params: any) {
|
||||
return request.post('/auth.admin/edit', params)
|
||||
}
|
||||
|
||||
// 管理员删除
|
||||
export function apiAdminDelete(params: { id: number }) {
|
||||
return request.post('/auth.admin/delete', params)
|
||||
}
|
||||
|
||||
// 管理员详情
|
||||
export function apiAdminDetail(params: any) {
|
||||
return request.get('/auth.admin/detail', { params })
|
||||
}
|
||||
// 角色列表
|
||||
export function apiRoleLists(params: any) {
|
||||
return request.get('/auth.role/lists', { params })
|
||||
}
|
||||
// 添加角色
|
||||
export function apiRoleAdd(params: any) {
|
||||
return request.post('/auth.role/add', { ...params })
|
||||
}
|
||||
// 编辑角色
|
||||
export function apiRoleEdit(params: any) {
|
||||
return request.post('/auth.role/edit', { ...params })
|
||||
}
|
||||
// 删除角色
|
||||
export function apiRoleDel(params: any) {
|
||||
return request.post('/auth.role/delete', { ...params })
|
||||
}
|
||||
// 角色详情
|
||||
export function apiRoleDetail(params: any) {
|
||||
return request.get('/auth.role/detail', { params })
|
||||
}
|
||||
|
||||
// 角色权限菜单
|
||||
export function apiConfigGetMenu() {
|
||||
return request.get('/config/getMenu')
|
||||
}
|
||||
|
||||
// 角色权限
|
||||
export function apiConfigGetAuth() {
|
||||
return request.get('/config/getAuth')
|
||||
}
|
||||
17
admin/src/api/channel/app_store.d.ts
vendored
Normal file
17
admin/src/api/channel/app_store.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/** S APP设置 **/
|
||||
export interface AppSettings_Res {
|
||||
ios_download_url: string, // 苹果APP下载链接
|
||||
android_download_url: string, // 安卓APP下载链接
|
||||
download_title: string, // APP下载引导文案
|
||||
app_id: string, // 开放平台appid
|
||||
app_secret: string // 开放平台appSecrets
|
||||
}
|
||||
|
||||
export interface AppSettings_Req {
|
||||
ios_download_url: string, // 苹果APP下载链接
|
||||
android_download_url: string, // 安卓APP下载链接
|
||||
download_title: string, // APP下载引导文案
|
||||
app_id: string, // 开放平台appid
|
||||
app_secret: string // 开放平台appSecrets
|
||||
}
|
||||
/** E APP设置 **/
|
||||
11
admin/src/api/channel/app_store.ts
Normal file
11
admin/src/api/channel/app_store.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import request from "@/utils/request";
|
||||
import * as Interface from './channel/app_store.d.ts'
|
||||
|
||||
/** S APP设置 **/
|
||||
// 获取APP设置
|
||||
export const apiAppSettings = (): Promise<Interface.AppSettings_Res> =>
|
||||
request.get('/channel.app_setting/getConfig')
|
||||
// APP设置
|
||||
export const apiAppSettingsSet = (data: Interface.AppSettings_Req): Promise<any> =>
|
||||
request.post('/channel.app_setting/setConfig', data)
|
||||
/** E APP设置 **/
|
||||
10
admin/src/api/channel/h5_store.ts
Normal file
10
admin/src/api/channel/h5_store.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
/** S H5设置 **/
|
||||
// 获取H5设置
|
||||
export const apiH5Settings = (): Promise<any> =>
|
||||
request.get('/channel.h5_setting/getConfig')
|
||||
// H5设置
|
||||
export const apiH5SettingsSet = (data: any): Promise<any> =>
|
||||
request.post('/channel.h5_setting/setConfig', data)
|
||||
/** E H5设置 **/
|
||||
10
admin/src/api/channel/mp_toutiao.ts
Normal file
10
admin/src/api/channel/mp_toutiao.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
/** S 字节小程序设置 **/
|
||||
// 获取字节小程序设置
|
||||
export const apiToutiaoSetting = () =>
|
||||
request.get('/toutiao.toutiao_setting/getConfig')
|
||||
// 字节小程序设置
|
||||
export const apiToutiaoSettingSet = (data: any) =>
|
||||
request.post('/toutiao.toutiao_setting/setConfig', data)
|
||||
/** E 字节小程序设置 **/
|
||||
49
admin/src/api/channel/mp_wechat.d.ts
vendored
Normal file
49
admin/src/api/channel/mp_wechat.d.ts
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
import * as Common from '../common.d.ts'
|
||||
import {apiMpWeChatMenuSave} from "@/api/channel/mp_wechat";
|
||||
|
||||
/** S 渠道信息 **/
|
||||
export interface MPWeChatConfigInfo_Res extends Common.Indexes {
|
||||
name: string, // 公众号名称
|
||||
original_id: string, // 原始id
|
||||
qr_code: string, // 二维码
|
||||
app_id: string, // APP ID
|
||||
app_secret: string, // App Secret
|
||||
url: string, // URL
|
||||
token: string, // Token
|
||||
encoding_aes_key: string, // Encoding AES Key
|
||||
encryption_type: string, // 消息加密方式: 1-明文模式 2-兼容模式 3-安全模式
|
||||
business_domain: string, // 业务域名
|
||||
js_secure_domain: string, // JS接口安全域名
|
||||
web_auth_domain: string, // 网页授权域名
|
||||
}
|
||||
|
||||
export interface MPWeChatConfigEdit_Req {
|
||||
name?: string, // 公众号名称
|
||||
original_id?: string, // 原始id
|
||||
qr_code?: string, // 二维码
|
||||
app_id: string, // APP ID
|
||||
app_secret: string, // App Secret
|
||||
token?: string, // Token
|
||||
encoding_aes_key?: string, // Encoding AES Key
|
||||
encryption_type: string, // 消息加密方式: 1-明文模式 2-兼容模式 3-安全模式
|
||||
}
|
||||
|
||||
/** E 渠道信息 **/
|
||||
|
||||
|
||||
/** S 菜单配置 **/
|
||||
export interface MPWeChatMenu {
|
||||
name: string, // 菜单名称
|
||||
type: string, // 菜单类型:click-关键字;view-网页;miniprogram-小程序
|
||||
key?: string, // 关键字
|
||||
url?: string, // 网页URL
|
||||
appid?: string, // 小程序AppID
|
||||
pagepath?: string, // 小程序路径
|
||||
sub_button?: Array<MPWeChatMenu>, // 二级菜单
|
||||
}
|
||||
|
||||
export interface MPWeChatMenuSave_Req {
|
||||
menu: Array<MPWeChatMenu>
|
||||
}
|
||||
|
||||
/** E 菜单配置 **/
|
||||
60
admin/src/api/channel/mp_wechat.ts
Normal file
60
admin/src/api/channel/mp_wechat.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
import request from "@/utils/request";
|
||||
import * as Interface from './mp_wechat.d.ts'
|
||||
|
||||
/** S 渠道设置 **/
|
||||
// 获取渠道信息
|
||||
export const apiMPWeChatConfigInfo = (): Promise<any> =>
|
||||
request.get('/channel.official_account_setting/getConfig')
|
||||
|
||||
// 编辑渠道信息
|
||||
export const apiMpWeChatConfigEdit = (params: Interface.MPWeChatConfigEdit_Req) =>
|
||||
request.post('/channel.official_account_setting/setConfig', params)
|
||||
|
||||
/** E 渠道设置 **/
|
||||
|
||||
|
||||
/** S 菜单设置 **/
|
||||
// 获取菜单详情
|
||||
export const apiMpWeChatMenuDetail = (): Promise<any> =>
|
||||
request.get('/channel.official_account_menu/detail')
|
||||
|
||||
// 保存菜单配置
|
||||
export const apiMpWeChatMenuSave = (params: any) =>
|
||||
request.post('/channel.official_account_menu/save', params)
|
||||
|
||||
// 发布菜单配置
|
||||
export const apiMpWeChatMenuPublish = (params: any) =>
|
||||
request.post('/channel.official_account_menu/saveAndPublish', params)
|
||||
/** E 菜单设置 **/
|
||||
|
||||
|
||||
/** S 回复管理 **/
|
||||
// 新增回复(关注/关词词/默认)
|
||||
export const apiMpWeChatReplyAdd = (params: any): Promise<any> =>
|
||||
request.post('/channel.official_account_reply/add', params)
|
||||
|
||||
// 编辑回复(关注/关键词/默认)
|
||||
export const apiMpWeChatReplyEdit = (params: any): Promise<any> =>
|
||||
request.post('/channel.official_account_reply/edit', params)
|
||||
|
||||
// 获取回复详情
|
||||
export const apiMpWeChatReplyDetail = (params: any): Promise<any> =>
|
||||
request.get('/channel.official_account_reply/detail', {params})
|
||||
|
||||
// 删除回复
|
||||
export const apiMpWeChatReplyDelete = (params: any): Promise<any> =>
|
||||
request.post('/channel.official_account_reply/delete', params)
|
||||
|
||||
// 更新排序
|
||||
export const apiMpWeChatReplySort = (params: any): Promise<any> =>
|
||||
request.post('/channel.official_account_reply/sort', params)
|
||||
|
||||
// 回复列表
|
||||
export const apiMpWeChatReplyLists = (params: any): Promise<any> =>
|
||||
request.get('/channel.official_account_reply/lists', {params})
|
||||
|
||||
// 回复列表
|
||||
export const apiMpWeChatReplyStatus = (params: any): Promise<any> =>
|
||||
request.post('/channel.official_account_reply/status', params)
|
||||
/** E 回复管理 **/
|
||||
|
||||
32
admin/src/api/channel/wechat_app.d.ts
vendored
Normal file
32
admin/src/api/channel/wechat_app.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/** S 微信小程序设置 **/
|
||||
export interface WechatMiniSetting_Res {
|
||||
name: string, // 小程序名称
|
||||
original_id: string, // 原始id
|
||||
qr_code: string, // 二维码
|
||||
app_id: string,
|
||||
app_secret: string,
|
||||
request_domain: string, // request合法域名
|
||||
socket_domain: string, // socket合法域名
|
||||
upload_file_domain: string, // uploadFile合法域名
|
||||
download_file_domain: string, // downloadFile合法域名
|
||||
udp_domain: string, // udp合法域名
|
||||
business_domain: string, // 业务域名
|
||||
url: string,
|
||||
token: string,
|
||||
encoding_aes_key: string,
|
||||
encryption_type: 1 | 2 | 3 , // 消息加密方式 1-明文模式 2-兼容模式 3-安全模式
|
||||
data_format: 1 | 2 // 数据格式 1-JSON 2-XML
|
||||
}
|
||||
|
||||
export interface WechatMiniSetting_Req {
|
||||
name: string, // 小程序名称
|
||||
original_id: string, // 原始id
|
||||
qr_code: string, // 二维码
|
||||
app_id: string,
|
||||
app_secret: string,
|
||||
token: string,
|
||||
encoding_aes_key: string,
|
||||
encryption_type: 1 | 2 | 3 , // 消息加密方式 1-明文模式 2-兼容模式 3-安全模式
|
||||
data_format: 1 | 2 // 数据格式 1-JSON 2-XML
|
||||
}
|
||||
/** E 微信小程序设置 **/
|
||||
11
admin/src/api/channel/wechat_app.ts
Normal file
11
admin/src/api/channel/wechat_app.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import request from "@/utils/request";
|
||||
import * as Interface from './wechat_app.d.ts'
|
||||
|
||||
/** S 微信小程序设置 **/
|
||||
// 获取微信小程序设置
|
||||
export const apiWechatMiniSetting = (): Promise<Interface.WechatMiniSetting_Res> =>
|
||||
request.get('/channel.mnp_settings/getConfig')
|
||||
// 微信小程序设置
|
||||
export const apiWechatMiniSettingSet = (data: Interface.WechatMiniSetting_Req): Promise<any> =>
|
||||
request.post('/channel.mnp_settings/setConfig', data)
|
||||
/** E 微信小程序设置 **/
|
||||
11
admin/src/api/channel/wechat_platform.ts
Normal file
11
admin/src/api/channel/wechat_platform.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
/** S 微信公众平台设置 **/
|
||||
// 获取pc设置
|
||||
export const apiWechatPlatformGet = (): Promise<any> =>
|
||||
request.get('/channel.open_setting/getConfig')
|
||||
|
||||
// pc设置
|
||||
export const apiWechatPlatformSet = (data: any): Promise<any> =>
|
||||
request.post('/channel.open_setting/setConfig', data)
|
||||
/** E pc设置 **/
|
||||
101
admin/src/api/decoration.ts
Normal file
101
admin/src/api/decoration.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
/* 装修管理 */
|
||||
import request from '@/utils/request'
|
||||
|
||||
/* 首页装修 Start */
|
||||
// 列表
|
||||
export function apiHomeMenuLists() {
|
||||
return request.get('/decorate.menu/lists')
|
||||
}
|
||||
|
||||
// 商城页面列表
|
||||
export function apiShowPage() {
|
||||
return request.get('/decorate.menu/shopPage')
|
||||
}
|
||||
|
||||
// 商品分类一级页面
|
||||
export function apiGoodsCategoryPage() {
|
||||
return request.get('/decorate.menu/goodsCategoryPage')
|
||||
}
|
||||
|
||||
// 详情
|
||||
export function apiHomeMenuDetail(params: any) {
|
||||
return request.get('/decorate.menu/detail', { params })
|
||||
}
|
||||
|
||||
// 添加
|
||||
export function apiHomeMenuAdd(params: any) {
|
||||
return request.post('/decorate.menu/add', params)
|
||||
}
|
||||
|
||||
// 编辑
|
||||
export function apiHomeMenuEdit(params: any) {
|
||||
return request.post('/decorate.menu/edit', params)
|
||||
}
|
||||
|
||||
// 状态
|
||||
export function apiHomeMenuStatusEdit(params: any) {
|
||||
return request.post('/decorate.menu/status', params)
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function apiHomeMenuDel(params: any) {
|
||||
return request.post('/decorate.menu/del', params)
|
||||
}
|
||||
|
||||
/* 首页装修 End */
|
||||
|
||||
/* 底部导航 Start */
|
||||
// 列表
|
||||
export function apiTabBarLists() {
|
||||
return request.get('/decorate.navigation/lists')
|
||||
}
|
||||
|
||||
// 详情
|
||||
export function apiTabBarDetail(params: any) {
|
||||
return request.get('/decorate.navigation/detail', { params })
|
||||
}
|
||||
|
||||
// 编辑
|
||||
export function apiTabBarEdit(params: any) {
|
||||
return request.post('/decorate.navigation/edit', params)
|
||||
}
|
||||
|
||||
/* 底部导航 End */
|
||||
|
||||
/* 广告管理 Start */
|
||||
// 列表
|
||||
export function apiAdLists(params: any) {
|
||||
return request.get('/ad.ad/lists', { params })
|
||||
}
|
||||
|
||||
// 广告位列表
|
||||
export function apiAdPositionLists() {
|
||||
return request.get('/ad.ad_position/lists')
|
||||
}
|
||||
|
||||
// 详情
|
||||
export function apiAdDetail(params: any) {
|
||||
return request.get('/ad.ad/detail', { params })
|
||||
}
|
||||
|
||||
// 添加
|
||||
export function apiAdAdd(params: any) {
|
||||
return request.post('/ad.ad/add', params)
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function apiAdDel(params: any) {
|
||||
return request.post('/ad.ad/del', params)
|
||||
}
|
||||
|
||||
// 状态修改
|
||||
export function apiAdEditStatus(params: any) {
|
||||
return request.post('/ad.ad/status', params)
|
||||
}
|
||||
|
||||
// 编辑
|
||||
export function apiAdEdit(params: any) {
|
||||
return request.post('/ad.ad/edit', params)
|
||||
}
|
||||
|
||||
/* 广告管理 End */
|
||||
70
admin/src/api/information.ts
Normal file
70
admin/src/api/information.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/** 资讯分类 Start **/
|
||||
// 列表
|
||||
export function apiArticleCategoryList(params: any) {
|
||||
return request.get('/article.articleCategory/lists', { params })
|
||||
}
|
||||
|
||||
// 添加
|
||||
export function apiArticleCategoryAdd(params: any) {
|
||||
return request.post('/article.articleCategory/add', params)
|
||||
}
|
||||
|
||||
// 编辑
|
||||
export function apiArticleCategoryEdit(params: any) {
|
||||
return request.post('/article.articleCategory/edit', params)
|
||||
}
|
||||
|
||||
// 详情
|
||||
export function apiArticleCategoryDetail(params: any) {
|
||||
return request.get('/article.articleCategory/detail', { params })
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function apiArticleCategoryDelete(params: any) {
|
||||
return request.post('/article.articleCategory/delete', params)
|
||||
}
|
||||
|
||||
// 状态
|
||||
export function apiArticleCategoryStatus(params: any) {
|
||||
return request.post('/article.articleCategory/updateStatus', params)
|
||||
}
|
||||
/** 资讯分类 End **/
|
||||
|
||||
/** 资讯列表 Start **/
|
||||
// 列表
|
||||
export function apiArticleList(params: any) {
|
||||
return request.get('/article.article/lists', { params })
|
||||
}
|
||||
|
||||
// 添加
|
||||
export function apiArticleAdd(params: any) {
|
||||
return request.post('/article.article/add', params)
|
||||
}
|
||||
|
||||
// 编辑
|
||||
export function apiArticleEdit(params: any) {
|
||||
return request.post('/article.article/edit', params)
|
||||
}
|
||||
|
||||
// 详情
|
||||
export function apiArticleDetail(params: any) {
|
||||
return request.get('/article.article/detail', { params })
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function apiArticleDelete(params: any) {
|
||||
return request.post('/article.article/delete', params)
|
||||
}
|
||||
|
||||
// 状态
|
||||
export function apiArticleStatus(params: any) {
|
||||
return request.post('/article.article/updateStatus', params)
|
||||
}
|
||||
|
||||
// 所有资讯分类
|
||||
export function apiAllArticleCategory() {
|
||||
return request.get('/article.articleCategory/selectArticleCategory')
|
||||
}
|
||||
/** 资讯列表 End **/
|
||||
65
admin/src/api/setting.ts
Normal file
65
admin/src/api/setting.ts
Normal file
@@ -0,0 +1,65 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获取备案信息
|
||||
export function apiGetCopyright() {
|
||||
return request.get('/setting.web.web_setting/getCopyright')
|
||||
}
|
||||
// 设置备案信息
|
||||
export function apiSetCopyright(params: any) {
|
||||
return request.post('/setting.web.web_setting/setCopyright', { ...params })
|
||||
}
|
||||
|
||||
// 获取网站信息
|
||||
export function apiGetWebsite() {
|
||||
return request.get('/setting.web.web_setting/getWebsite')
|
||||
}
|
||||
// 设置网站信息
|
||||
export function apiSetWebsite(params: any) {
|
||||
return request.post('/setting.web.web_setting/setWebsite', { ...params })
|
||||
}
|
||||
|
||||
// 获取政策协议
|
||||
export function apiGetProtocol() {
|
||||
return request.get('/setting.web.web_setting/getAgreement')
|
||||
}
|
||||
// 设置政策协议
|
||||
export function apiSetProtocol(params: any) {
|
||||
return request.post('/setting.web.web_setting/setAgreement', params)
|
||||
}
|
||||
|
||||
// 获取系统环境
|
||||
export function apiSystemInfo() {
|
||||
return request.get('/setting.system.system/info')
|
||||
}
|
||||
|
||||
/** S 在线客服 **/
|
||||
// 获取客服设置
|
||||
export const apiCustomerServiceGetConfig = (): Promise<any> =>
|
||||
request.get('/setting.customer_service/getConfig')
|
||||
|
||||
// 设置客服设置
|
||||
export const apiCustomerServiceSetConfig = (params: any): Promise<any> =>
|
||||
request.post('/setting.customer_service/setConfig', params)
|
||||
/** E 在线客服 **/
|
||||
|
||||
/** S 用户设置 **/
|
||||
// 获取用户设置
|
||||
export function apiUserConfigGet() {
|
||||
return request.get('/setting.user.user/getConfig')
|
||||
}
|
||||
|
||||
// 用户设置
|
||||
export function apiUserConfigSet(params: any) {
|
||||
return request.post('/setting.user.user/setConfig', params)
|
||||
}
|
||||
|
||||
// 获取登录注册设置
|
||||
export function apiLoginConfigGet() {
|
||||
return request.get('/setting.user.user/getRegisterConfig')
|
||||
}
|
||||
|
||||
// 登录注册设置
|
||||
export function apiLoginConfigSet(params: any) {
|
||||
return request.post('/setting.user.user/setRegisterConfig', params)
|
||||
}
|
||||
/** E 用户设置 **/
|
||||
17
admin/src/api/user.ts
Normal file
17
admin/src/api/user.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
import { terminal } from '@/config/app'
|
||||
|
||||
// 登录
|
||||
export function apiLogin(params: { account: string; password: string }) {
|
||||
return request.post('/login/account', { ...params, terminal })
|
||||
}
|
||||
|
||||
// 退出登录
|
||||
export function apiLogout() {
|
||||
return request.post('/login/logout')
|
||||
}
|
||||
|
||||
// 用户信息
|
||||
export function apiUserInfo() {
|
||||
return request.get('/auth.admin/mySelf')
|
||||
}
|
||||
6
admin/src/api/workbench.ts
Normal file
6
admin/src/api/workbench.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 工作台主页
|
||||
export function apiWorkbench() {
|
||||
return request.get('/Workbench/index')
|
||||
}
|
||||
Reference in New Issue
Block a user