| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import axios from '../utils/request'
- // -----------------------web----------------------------
- // 提交留言
- export const commentSave = (data) => {
- return axios({
- method: 'post',
- url: '/web/comment/save',
- data
- })
- }
- // 获取列表
- export const commentWebList = (data) => {
- return axios({
- method: 'post',
- url: '/web/comment/list',
- data
- })
- }
- // -----------------------后台----------------------------
- // 获取列表
- export const commentList = (data) => {
- return axios({
- method: 'post',
- url: '/cms/comment/list',
- data
- })
- }
- // 留言的审核-通过2,不通过1
- export const commentAudit = (status, id) => {
- return axios({
- method: 'get',
- url: `/cms/comment/audit/${id}/${status}`
- })
- }
- // 删除留言
- export const commentRemove = (id) => {
- return axios({
- method: 'get',
- url: `/cms/comment/remove/${id}`
- })
- }
|