| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import request from '@/utils/request';
- import { AxiosPromise } from 'axios';
- import { CompanycodeVO, CompanycodeForm, CompanycodeQuery } from '@/api/system/companycode/types';
- /**
- * 查询【请填写功能名称】列表
- * @param query
- * @returns {*}
- */
- export const listCompanycode = (query?: CompanycodeQuery): AxiosPromise<CompanycodeVO[]> => {
- return request({
- url: '/system/companycode/list',
- method: 'get',
- params: query
- });
- };
- /**
- * 查询【请填写功能名称】详细
- * @param id
- */
- export const getCompanycode = (id: string | number): AxiosPromise<CompanycodeVO> => {
- return request({
- url: '/system/companycode/' + id,
- method: 'get'
- });
- };
- /**
- * 新增【请填写功能名称】
- * @param data
- */
- export const addCompanycode = (data: CompanycodeForm) => {
- return request({
- url: '/system/companycode',
- method: 'post',
- data: data
- });
- };
- /**
- * 修改【请填写功能名称】
- * @param data
- */
- export const updateCompanycode = (data: CompanycodeForm) => {
- return request({
- url: '/system/companycode',
- method: 'put',
- data: data
- });
- };
- /**
- * 删除【请填写功能名称】
- * @param id
- */
- export const delCompanycode = (id: string | number | Array<string | number>) => {
- return request({
- url: '/system/companycode/' + id,
- method: 'delete'
- });
- };
|