package com.ruoyi.web.app;

import com.ruoyi.bst.articleCategory.domain.ArticleCategoryQuery;
import com.ruoyi.bst.articleCategory.domain.enums.ArticleCategoryStatus;
import com.ruoyi.bst.customerService.domain.CustomerServiceQuery;
import com.ruoyi.bst.customerService.domain.enums.CustomerServiceStatus;
import com.ruoyi.bst.customerService.service.CustomerServiceService;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiOperation;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/app/customerService")
public class AppCustomerServiceController extends BaseController {


    @Autowired
    private CustomerServiceService customerServiceService;

    @ApiOperation("获取客服列表")
    @GetMapping("/list")
    public TableDataInfo list(CustomerServiceQuery query) {
        startPage();
        startOrderBy();
        query.setIsEnabled(CustomerServiceStatus.ENABLE.getStatus());
        return getDataTable(customerServiceService.selectCustomerServiceList(query));
    }

}
