| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- import axios from './request'
- // 用户登录接口
- export const userLogin = (data) => {
- return axios({
- method: 'post',
- url: '/admin/login',
- data
- })
- }
- // 修改密码
- export const updatePwd = (data) => {
- return axios({
- method: 'post',
- url: '/sys/user/updatePwd',
- data
- })
- }
- // 操作日志列表
- export const getList = (data) => {
- return axios({
- method: 'post',
- url: '/cms/activity/list',
- data
- })
- }
- // 获取活动列表
- export const logList = (data) => {
- return axios({
- method: 'post',
- url: '/sys/log/list',
- data
- })
- }
- // 新增/编辑
- export const activitySave = (data) => {
- return axios({
- method: 'post',
- url: '/cms/activity/save',
- data
- })
- }
- // 删除列表
- export const activityRemove = (id) => {
- return axios({
- method: 'get',
- url: `/cms/activity/remove/${id}`,
- })
- }
- // 根据id获取详情
- export const activityDetail = (id) => {
- return axios({
- method: 'get',
- url: `/cms/activity/detail/${id}`,
- })
- }
- // 发布
- export const activityPublish = (id, display) => {
- return axios({
- method: 'get',
- url: `/cms/activity/publish/${id}/${display}`,
- })
- }
- // 特别提醒编辑
- export const remarkEdit = (data) => {
- return axios({
- method: 'post',
- url: '/cms/activity/remark/edit',
- data
- })
- }
- // 特别提醒详情
- export const remarkDetail= () => {
- return axios({
- method: 'get',
- url: '/cms/activity/remark/detail',
- })
- }
- // 导出-excel
- export const exportExcel= (id) => {
- return axios({
- method: 'get',
- url: `/cms/activity/export/excel/${id}`,
- })
- }
- // 获取预约列表
- export const applyUserList= (data) => {
- return axios({
- method: 'post',
- url: '/cms/applyUser/list',
- data
- })
- }
- // 删除预约
- export const applyUserRemove= (id) => {
- return axios({
- method: 'get',
- url: `/cms/applyUser/remove/${id}`,
- })
- }
|