mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-23 18:42:52 +08:00
代码格式化
This commit is contained in:
@@ -10,36 +10,35 @@ export function getOaConfig() {
|
||||
return request.get({ url: '/channel/oa/detail' })
|
||||
}
|
||||
|
||||
|
||||
export interface Menu {
|
||||
name: string,
|
||||
menuType?: number,
|
||||
visitType?: string,
|
||||
url?: string,
|
||||
name: string
|
||||
menuType?: number
|
||||
visitType?: string
|
||||
url?: string
|
||||
appId?: string
|
||||
pagePath?: string,
|
||||
pagePath?: string
|
||||
subButtons: Menu[] | any
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @description 获取菜单
|
||||
*/
|
||||
export function getOaMenu() {
|
||||
export function getOaMenu() {
|
||||
return request.get({ url: '/channel/oaMenu/detail' })
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { Menu } Menu
|
||||
* @description 菜单保存
|
||||
*/
|
||||
export function setOaMenuSave(params: Menu | any) {
|
||||
export function setOaMenuSave(params: Menu | any) {
|
||||
return request.post({ url: '/channel/oaMenu/save', params })
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { Menu } Menu
|
||||
* @description 菜单发布
|
||||
*/
|
||||
@@ -48,64 +47,63 @@ export function setOaMenuPublish(params: Menu | any) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { string } type
|
||||
* @description 获取回复列表
|
||||
*/
|
||||
export function getOaReplyList(params: { type: string } ) {
|
||||
export function getOaReplyList(params: { type: string }) {
|
||||
return request.get({ url: '/channel/oaReply/list', params })
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { number } id
|
||||
* @description 回复列表删除
|
||||
*/
|
||||
export function oaReplyDel(params: { id: number }) {
|
||||
export function oaReplyDel(params: { id: number }) {
|
||||
return request.post({ url: '/channel/oaReply/del', params })
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { number } id
|
||||
* @description 回复状态修改
|
||||
*/
|
||||
export function changeOaReplyStatus(params: { id: number } ) {
|
||||
export function changeOaReplyStatus(params: { id: number }) {
|
||||
return request.post({ url: '/channel/oaReply/status', params })
|
||||
}
|
||||
|
||||
|
||||
export interface Reply {
|
||||
content: string; // 内容
|
||||
contentType: number; // 内容类型: 1=文本
|
||||
keyword?: string; // 关键词
|
||||
matchingType?: number; // 匹配方式: [1=全匹配, 2=模糊匹配]
|
||||
name: string; // 规则名称
|
||||
status: number; // 状态: 1=开启, 0=关闭
|
||||
type: string; // 类型: follow=关注, keyword=关键词, default=默认
|
||||
sort: number // 排序
|
||||
content: string // 内容
|
||||
contentType: number // 内容类型: 1=文本
|
||||
keyword?: string // 关键词
|
||||
matchingType?: number // 匹配方式: [1=全匹配, 2=模糊匹配]
|
||||
name: string // 规则名称
|
||||
status: number // 状态: 1=开启, 0=关闭
|
||||
type: string // 类型: follow=关注, keyword=关键词, default=默认
|
||||
sort: number // 排序
|
||||
}
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @description 回复添加
|
||||
*/
|
||||
export function oaReplyAdd(params: Reply ) {
|
||||
export function oaReplyAdd(params: Reply) {
|
||||
return request.post({ url: '/channel/oaReply/add', params })
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @description 回复编辑
|
||||
*/
|
||||
export function oaReplyEdit(params: Reply ) {
|
||||
export function oaReplyEdit(params: Reply) {
|
||||
return request.post({ url: '/channel/oaReply/edit', params })
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { string } type
|
||||
* @description 获取回复详情
|
||||
*/
|
||||
export function getOaReplyDetail(params: { id: number } ) {
|
||||
export function getOaReplyDetail(params: { id: number }) {
|
||||
return request.get({ url: '/channel/oaReply/detail', params })
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @description 获取热门搜索数据
|
||||
*/
|
||||
export function getSearch() {
|
||||
@@ -9,21 +9,19 @@ export function getSearch() {
|
||||
}
|
||||
|
||||
export interface List {
|
||||
name: string // 搜索关键字
|
||||
sort: number // 热门搜索排序
|
||||
name: string // 搜索关键字
|
||||
sort: number // 热门搜索排序
|
||||
}
|
||||
|
||||
export interface Search {
|
||||
isHotSearch: number // 是否开启搜索0/1
|
||||
isHotSearch: number // 是否开启搜索0/1
|
||||
list: List[]
|
||||
}
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { Search } Search
|
||||
* @description 设置热门搜索
|
||||
*/
|
||||
export function setSearch(params: Search) {
|
||||
return request.post({ url: '/setting/search/save', params })
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @description 获取用户设置
|
||||
*/
|
||||
export function getUserSetup() {
|
||||
@@ -9,7 +9,7 @@ export function getUserSetup() {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { string } defaultAvatar 默认用户头像
|
||||
* @description 设置用户设置
|
||||
*/
|
||||
@@ -18,28 +18,25 @@ export function setUserSetup(params: { defaultAvatar: string }) {
|
||||
}
|
||||
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @description 设置登录注册规则
|
||||
*/
|
||||
export function getLogin() {
|
||||
return request.get({ url: '/setting/login/detail' })
|
||||
}
|
||||
|
||||
|
||||
export interface LoginSetup {
|
||||
loginWay: number[] | any // 登录方式, 逗号隔开
|
||||
forceBindMobile: number // 强制绑定手机 0/1
|
||||
openAgreement: number // 是否开启协议 0/1
|
||||
openOtherAuth: number // 第三方登录 0/1
|
||||
autoLoginAuth: number[] | any // 第三方自动登录 逗号隔开
|
||||
loginWay: number[] | any // 登录方式, 逗号隔开
|
||||
forceBindMobile: number // 强制绑定手机 0/1
|
||||
openAgreement: number // 是否开启协议 0/1
|
||||
openOtherAuth: number // 第三方登录 0/1
|
||||
autoLoginAuth: number[] | any // 第三方自动登录 逗号隔开
|
||||
}
|
||||
/**
|
||||
* @return { Promise }
|
||||
* @return { Promise }
|
||||
* @param { LoginSetup } LoginSetup
|
||||
* @description 设置登录注册规则
|
||||
*/
|
||||
export function setLogin(params: LoginSetup) {
|
||||
return request.post({ url: '/setting/login/save', params })
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user