api.js 2.11 KB
// const api = wx.$request
import api from '~/utils/request/request.js'
// const api = wx.$request
module.exports = {
    /**退出*/
    logout() {
        return api.post('dj.api.smartcarlife.logout')
    },
    /** 获取工位设置信息 */
    getWorkSetting() {
        return api.post('dj.api.smartcarlife.inviteStationSet.get')
    },
    /**更新工位设置 */
    setWorkSetting(data) {
        return api.post('dj.api.smartcarlife.inviteStationSet.update', data)
    },

    // /** 获取我的种草总数 */
    // GETGRASSTOTAL(data) {
    //   return api.post('dj.api.smartcarlife.orderShareRecord.own.count', data)
    // },

    // /** 分页查询我的种草 */
    // GETGRASSLIST(data) {
    //   return api.post('dj.api.smartcarlife.orderShareRecord.own.page', data)
    // },

    // 分页查询技师列表
    getTechnicianList(data) {
        return api.post('dj.api.smartcarlife.staff.findStaffByPage', data)
    },

    // 新增技师信息
    addTechnician(data) {
        return api.post('dj.api.smartcarlife.technicianConfig.add', data)
    },

    // 修改技师信息
    updateTechnician(data) {
        return api.post('dj.api.smartcarlife.technicianConfig.update', data)
    },

    // 删除技师
    deleteTechnician(data) {
        return api.post('dj.api.smartcarlife.technicianConfig.delete', data)
    },

    /** 分页查询我的种草 */
    GETGRASSLIST(data) {
        return api.post('dj.api.smartcarlife.orderShareRecord.own.page', data)
    },

    /** 获取商户配置 */
    getMerchantConfiguration(data) {
        return api.post('dj.api.scenemerchantref.getMerchantConfiguration', data)
    },

    /** 配置修改 */
    updateSignatureConfiguration(data) {
        return api.post('dj.api.scenemerchantref.updateSignatureConfiguration', data)
    },

    /** 获取领劵预约设置 */
    getReservationConfig(data) {
        return api.post('dj.api.smartcarlife.reservation.phone.number.config.get', data)
    },

    /** 更新领劵预约设置 */
    updateReservationConfig(data) {
        return api.post('dj.api.smartcarlife.reservation.phone.number.config.update', data)
    }
}