mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-11-21 18:06:52 +08:00
smart-app alpha 版本
This commit is contained in:
31
smart-app/src/api/business/goods/goods-api.js
Normal file
31
smart-app/src/api/business/goods/goods-api.js
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* @Description:
|
||||
* @Author: zhuoda
|
||||
* @Date: 2021-11-05
|
||||
* @LastEditTime: 2022-06-23
|
||||
* @LastEditors: zhuoda
|
||||
*/
|
||||
import { postRequest, getRequest } from '/@/lib/smart-request';
|
||||
|
||||
export const goodsApi = {
|
||||
// 添加商品 @author zhuoda
|
||||
addGoods: (param) => {
|
||||
return postRequest('/goods/add', param);
|
||||
},
|
||||
// 删除 @author zhuoda
|
||||
deleteGoods: (goodsId) => {
|
||||
return getRequest(`/goods/delete/${goodsId}`);
|
||||
},
|
||||
// 批量 @author zhuoda
|
||||
batchDelete: (goodsIdList) => {
|
||||
return postRequest('/goods/batchDelete', goodsIdList);
|
||||
},
|
||||
// 分页查询 @author zhuoda
|
||||
queryGoodsList: (param) => {
|
||||
return postRequest('/goods/query', param);
|
||||
},
|
||||
// 更新商品 @author zhuoda
|
||||
updateGoods: (param) => {
|
||||
return postRequest('/goods/update', param);
|
||||
},
|
||||
};
|
||||
37
smart-app/src/api/business/oa/enterprise-api.js
Normal file
37
smart-app/src/api/business/oa/enterprise-api.js
Normal file
@@ -0,0 +1,37 @@
|
||||
/*
|
||||
* 企业信息
|
||||
*
|
||||
* @Author: 开云
|
||||
* @Date: 2023-09-03 21:47:28
|
||||
* @Wechat: zhuda1024
|
||||
* @Email: lab1024@163.com
|
||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||
*/
|
||||
import { postRequest, getRequest } from '/@/lib/smart-request';
|
||||
|
||||
export const enterpriseApi = {
|
||||
// 新建企业 @author 开云
|
||||
create: (param) => {
|
||||
return postRequest('/oa/enterprise/create', param);
|
||||
},
|
||||
|
||||
// 查询企业详情 @author 开云
|
||||
detail: (enterpriseId) => {
|
||||
return getRequest(`/oa/enterprise/get/${enterpriseId}`);
|
||||
},
|
||||
|
||||
// 分页查询企业模块 @author 开云
|
||||
pageQuery: (param) => {
|
||||
return postRequest('/oa/enterprise/page/query', param);
|
||||
},
|
||||
|
||||
// 编辑企业 @author 开云
|
||||
update: (param) => {
|
||||
return postRequest('/oa/enterprise/update', param);
|
||||
},
|
||||
|
||||
// 删除企业 @author 开云
|
||||
delete: (enterpriseId) => {
|
||||
return getRequest(`/oa/enterprise/delete/${enterpriseId}`);
|
||||
},
|
||||
};
|
||||
33
smart-app/src/api/business/oa/notice-api.js
Normal file
33
smart-app/src/api/business/oa/notice-api.js
Normal file
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* @Description: 公告信息、企业动态
|
||||
* @version:
|
||||
* @Author: zhuoda
|
||||
* @Date: 2022-08-16 20:34:36
|
||||
*/
|
||||
import { postRequest, getRequest } from '/@/lib/smart-request';
|
||||
|
||||
export const noticeApi = {
|
||||
// ---------------- 通知公告类型 -----------------------
|
||||
|
||||
// 通知公告类型-获取全部 @author zhuoda
|
||||
getAllNoticeTypeList() {
|
||||
return getRequest('/oa/noticeType/getAll');
|
||||
},
|
||||
|
||||
// --------------------- 【员工】查看 通知公告 -------------------------
|
||||
|
||||
// 通知公告-员工-查看详情 @author zhuoda
|
||||
view(noticeId) {
|
||||
return getRequest(`/oa/notice/employee/view/${noticeId}`);
|
||||
},
|
||||
|
||||
// 通知公告-员工-查询 @author zhuoda
|
||||
queryEmployeeNotice(param) {
|
||||
return postRequest('/oa/notice/employee/query', param);
|
||||
},
|
||||
|
||||
// 【员工】通知公告-查询 查看记录 @author zhuoda
|
||||
queryViewRecord(param) {
|
||||
return postRequest('/oa/notice/employee/queryViewRecord', param);
|
||||
},
|
||||
};
|
||||
17
smart-app/src/api/support/change-log-api.js
Normal file
17
smart-app/src/api/support/change-log-api.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 系统更新日志 api 封装
|
||||
*
|
||||
* @Author: 卓大
|
||||
* @Date: 2022-09-26 14:53:50
|
||||
* @Copyright 1024创新实验室
|
||||
*/
|
||||
import { postRequest, getRequest } from '/@/lib/smart-request';
|
||||
|
||||
export const changeLogApi = {
|
||||
/**
|
||||
* 分页查询 @author 卓大
|
||||
*/
|
||||
queryPage: (param) => {
|
||||
return postRequest('/support/changeLog/queryPage', param);
|
||||
},
|
||||
};
|
||||
59
smart-app/src/api/support/dict-api.js
Normal file
59
smart-app/src/api/support/dict-api.js
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* 字典
|
||||
*
|
||||
* @Author: 1024创新实验室-主任:卓大
|
||||
* @Date: 2022-09-03 21:55:25
|
||||
* @Wechat: zhuda1024
|
||||
* @Email: lab1024@163.com
|
||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||
*/
|
||||
import { postRequest, getRequest } from '/@/lib/smart-request';
|
||||
|
||||
export const dictApi = {
|
||||
// 分页查询数据字典KEY - @author 卓大
|
||||
keyQuery: (param) => {
|
||||
return postRequest('/support/dict/key/query', param);
|
||||
},
|
||||
// 查询全部字典key - @author 卓大
|
||||
queryAllKey: () => {
|
||||
return getRequest('/support/dict/key/queryAll');
|
||||
},
|
||||
/**
|
||||
* 分页查询数据字典value - @author 卓大
|
||||
*/
|
||||
valueQuery: (param) => {
|
||||
return postRequest('/support/dict/value/query', param);
|
||||
},
|
||||
// 数据字典KEY-添加- @author 卓大
|
||||
keyAdd: (param) => {
|
||||
return postRequest('/support/dict/key/add', param);
|
||||
},
|
||||
// 分页查询数据字典value - @author 卓大
|
||||
valueAdd: (param) => {
|
||||
return postRequest('/support/dict/value/add', param);
|
||||
},
|
||||
// 数据字典key-更新- @author 卓大
|
||||
keyEdit: (param) => {
|
||||
return postRequest('/support/dict/key/edit', param);
|
||||
},
|
||||
// 数据字典Value-更新- @author 卓大
|
||||
valueEdit: (param) => {
|
||||
return postRequest('/support/dict/value/edit', param);
|
||||
},
|
||||
// 数据字典key-删除- @author 卓大
|
||||
keyDelete: (keyIdList) => {
|
||||
return postRequest('/support/dict/key/delete', keyIdList);
|
||||
},
|
||||
// 数据字典Value-删除- @author 卓大
|
||||
valueDelete: (valueIdList) => {
|
||||
return postRequest('/support/dict/value/delete', valueIdList);
|
||||
},
|
||||
// 缓存刷新- @author 卓大
|
||||
cacheRefresh: () => {
|
||||
return getRequest('/support/dict/cache/refresh');
|
||||
},
|
||||
// 数据字典-值列表- @author 卓大
|
||||
valueList: (keyCode) => {
|
||||
return getRequest(`/support/dict/value/list/${keyCode}`);
|
||||
},
|
||||
};
|
||||
40
smart-app/src/api/system/login-api.js
Normal file
40
smart-app/src/api/system/login-api.js
Normal file
@@ -0,0 +1,40 @@
|
||||
/*
|
||||
* 登录
|
||||
*
|
||||
* @Author: 1024创新实验室-主任:卓大
|
||||
* @Date: 2022-09-03 21:59:58
|
||||
* @Wechat: zhuda1024
|
||||
* @Email: lab1024@163.com
|
||||
* @Copyright 1024创新实验室 ( https://1024lab.net ),Since 2012
|
||||
*/
|
||||
import { getRequest, postRequest } from '/@/lib/smart-request';
|
||||
|
||||
export const loginApi = {
|
||||
/**
|
||||
* 登录 @author 卓大
|
||||
*/
|
||||
login: (param) => {
|
||||
return postRequest('/login', param);
|
||||
},
|
||||
|
||||
/**
|
||||
* 退出登录 @author 卓大
|
||||
*/
|
||||
logout: () => {
|
||||
return getRequest('/login/logout');
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取验证码 @author 卓大
|
||||
*/
|
||||
getCaptcha: () => {
|
||||
return getRequest('/login/getCaptcha');
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取登录信息 @author 卓大
|
||||
*/
|
||||
getLoginInfo: () => {
|
||||
return getRequest('/login/getLoginInfo');
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user