123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import request from '@/utils/request'
- // 查询公司短信列表
- export function listCompanySms(query) {
- return request({
- url: '/company/companySms/list',
- method: 'get',
- params: query
- })
- }
- // 查询公司短信详细
- export function getCompanySms(smsId) {
- return request({
- url: '/company/companySms/' + smsId,
- method: 'get'
- })
- }
- // 新增公司短信
- export function addCompanySms(data) {
- return request({
- url: '/company/companySms',
- method: 'post',
- data: data
- })
- }
- export function sendCustomerMsg(data) {
- return request({
- url: '/company/companySms/sendCustomerMsg',
- method: 'post',
- data: data
- })
- }
-
- export function sendCustomerBatchMsg(data) {
- return request({
- url: '/company/companySms/sendCustomerBatchMsg',
- method: 'post',
- data: data
- })
- }
- export function getCompanySmsCount() {
- return request({
- url: '/company/companySms/getCompanySmsCount',
- method: 'get'
- })
- }
- // 修改公司短信
- export function updateCompanySms(data) {
- return request({
- url: '/company/companySms',
- method: 'put',
- data: data
- })
- }
- // 删除公司短信
- export function delCompanySms(smsId) {
- return request({
- url: '/company/companySms/' + smsId,
- method: 'delete'
- })
- }
- // 导出公司短信
- export function exportCompanySms(query) {
- return request({
- url: '/company/companySms/export',
- method: 'get',
- params: query
- })
- }
|