package com.fs.app.controller;

import com.fs.common.core.domain.R;
import com.fs.common.core.redis.RedisCache;
import com.fs.qw.domain.QwUser;
import com.fs.qw.mapper.QwExternalContactMapper;
import com.fs.qw.mapper.QwUserMapper;
import com.fs.qw.service.IQwUserService;
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(value="/app/test")
public class testController {

    @Autowired
    QwUserMapper qwUserMapper;
    @Autowired
    QwExternalContactMapper qwExternalContactMapper;
    @Autowired
    testService testService;
    @Autowired
    private RedisCache redisCache;
    @Autowired
    private  IQwUserService qwUserService;

    @GetMapping("/qwHookNotify")
    public R qwHookNotify() {

        QwUser user = qwUserMapper.selectById(34205);
        qwUserService.atMsg(user, "掉线提醒（登录异常）");


        return  R.ok();
    }





}
