package com.fs.app.controller;

import com.fs.common.core.domain.R;
import com.fs.common.core.redis.RedisCache;
import com.fs.qw.mapper.QwExternalContactMapper;
import com.fs.qw.mapper.QwUserMapper;
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;

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

//        redisCache.setCacheObject("qwUserRd:"+12313+":"+12313 ,JSON.toJSONString(null),1, TimeUnit.HOURS);

//
//        List<QwUser> qwUserAllKey = qwUserMapper.getQwUserAllKey();
//
//
//        int i=1;
//
//        for (QwUser qwUser : qwUserAllKey) {
//            System.out.println(qwUser);
//            i++;
//            System.out.println("执行到第:"+i);
//            testService.add(qwUser);
//
//        }


        return  R.ok();
    }





}
