/*
 * @Author: wj 1454560336@qq.com
 * @Date: 2023-12-08 16:17:22
 * @LastEditors: wj 1454560336@qq.com
 * @LastEditTime: 2023-12-08 16:18:19
 * @FilePath: \admin-manage\src\api\commission.js
 * @Description: 
 * 
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved. 
 */
import request from '@/utils/request'

// 规则列表
export function getRuleList(params) {
  return request({
    url: '/zswl-cloud-shop/shareChannel/search',
    method: 'get',
    params
  })
}

// 规则详情
export function ruleDetail(params) {
    return request({
      url: '/zswl-cloud-shop/shareChannel/get',
      method: 'get',
      params
    })
  }
  
// 规则删除
export function delRule(params) {
    return request({
      url: '/zswl-cloud-shop/shareChannel/del',
      method: 'get',
      params
    })
  }

  
// 添加修改
export function addOrUpdate(data) {
    return request({
      url: '/zswl-cloud-shop/shareChannel/addOrUpdate',
      method: 'post',
      data
    })
  }