You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
965 B
39 lines
965 B
import { defHttp } from '@/utils/http/axios'
|
|
|
|
export interface CompanyVO {
|
|
id?: number
|
|
name: string // 集团名称
|
|
short: string // 集团简称
|
|
status: number // 状态
|
|
createTime: Date // 创建时间
|
|
}
|
|
|
|
export interface CompanyPageReqVO {
|
|
name?: string
|
|
status?: number
|
|
}
|
|
|
|
// 查询集团列表
|
|
export function getCompanyPage(params: CompanyPageReqVO) {
|
|
return defHttp.get({ url: '/system/Company/page', params })
|
|
}
|
|
|
|
// 查询集团详情
|
|
export function getCompany(id: number) {
|
|
return defHttp.get({ url: `/system/Company/get?id=${id}` })
|
|
}
|
|
|
|
// 新增集团
|
|
export function createCompany(data: CompanyVO) {
|
|
return defHttp.post({ url: '/system/Company/create', data })
|
|
}
|
|
|
|
// 修改集团
|
|
export function updateCompany(params: CompanyVO) {
|
|
return defHttp.put({ url: '/system/Company/update', data: params })
|
|
}
|
|
|
|
// 删除集团
|
|
export function deleteCompany(id: number) {
|
|
return defHttp.delete({ url: `/system/Company/delete?id=${id}` })
|
|
}
|
|
|