You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
938 B
33 lines
938 B
import request from '@/utils/request' |
|
|
|
export function listPointsRules(params) { |
|
return request({ url: '/business/points/rule/list', method: 'get', params }) |
|
} |
|
|
|
export function listFactoryDepartments() { |
|
return request({ url: '/system/dept/factoryList', method: 'get' }) |
|
} |
|
|
|
export function getMyFactoryDepartment() { |
|
return request({ url: '/system/dept/myFactory', method: 'get' }) |
|
} |
|
|
|
export function togglePointsRule(id, enabled) { |
|
return request({ |
|
url: '/business/points/rule/toggleEnabled', |
|
method: 'post', |
|
params: { id, enabled } |
|
}) |
|
} |
|
|
|
export function deletePointsRule(id) { |
|
return request({ url: '/business/points/rule/deleteById', method: 'get', params: { id }}) |
|
} |
|
|
|
export function getPointsRule(id) { |
|
return request({ url: '/business/points/rule/info', method: 'get', params: { id }}) |
|
} |
|
|
|
export function addPointsRule(data) { |
|
return request({ url: '/business/points/rule/add', method: 'post', data }) |
|
}
|
|
|