package com.example.his.api.mis.controller;


import cn.dev33.satoken.annotation.SaCheckPermission;
import cn.dev33.satoken.annotation.SaMode;
import com.example.his.api.common.result.R;
import com.example.his.api.mis.service.CustomerImService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.HashMap;

@RestController("MisCustomerImController")
@RequestMapping("/mis/customer/im")
public class CustomerImController {

    @Resource
    private CustomerImService customerImService;


    /**
     * 客服IM-查询
     * @return
     */
    @GetMapping("/searchCustomerImAccount")
    @SaCheckPermission(value = {"BUSINESS:IM:SELECT"}, mode = SaMode.OR)
    public R searchCustomerImAccount() {
        HashMap map = customerImService.searchServiceAccount();
        return R.success(map);
    }
}
