import request from '@/utils/request'


export default {

    // 分页条件查询分类列表 
    getList(query, pageNo = 1, pageSize = 20) {
        return request({ // Promise
            url: '/team/getTeamList',
            method: 'post',
            data: {
                ...query, //查询条件
                pageNo, //当前页
                pageSize //每页多少条
            }
        })
    },

    //新增
    add(data) {
        return request({
            url: '/team/appendTeam',
            method: 'post',
            data: data
        })
    },

    // 更新
    update(data) {
        return request({
            url: '/team/updateTeam',
            method: 'post',
            data: data
        })
    },

    // 删除
    deleteById(data) {
        return request({
            url: `/team/deleteTeam`,
            method: 'post',
            data: data
        })
    },

    // 团队人员下拉
    getPersonList(data) {
        return request({
            url: '/team/getPersonnelbox',
            method: 'post',
        })
    },


}