package com.YuyeTech.TPlat.game.userDeleteLog.controller;

import com.YuyeTech.TPlat.annotation.Decrypt;
import com.YuyeTech.TPlat.annotation.Encrypt;
import com.YuyeTech.TPlat.common.controller.CommonController;
import com.YuyeTech.TPlat.common.pojo.PageInfo;
import com.YuyeTech.TPlat.common.pojo.Result;
import com.YuyeTech.TPlat.game.userDeleteLog.pojo.UserDeleteLog;
import com.YuyeTech.TPlat.game.userDeleteLog.service.UserDeleteLogService;
import com.YuyeTech.TPlat.game.userDeleteLog.vo.UserDeleteLogVo;
import com.YuyeTech.TPlat.game.userinfo.service.MainInfoService;
import com.YuyeTech.TPlat.game.userinfo.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.ModelAndView;

import java.util.Map;

@RestController
@RequestMapping("/backstage_userDeleteLog/")
public class BackstageUserDeleteLogController extends CommonController<UserDeleteLogVo, UserDeleteLog, String> {
    @Autowired
    private UserDeleteLogService userDeleteLogService;

    /**
     * 前端view跳转,配置菜单路径
     * 设置默认参数
     *
     * @return
     */
    @GetMapping("gotoView")
    public ModelAndView gotoView() {
        ModelAndView modelAndView = new ModelAndView("client/userInfoLog");
        return modelAndView;
    }

    /**
     * 分页查询数据
     *
     * @param vo
     * @return
     */
    @PostMapping("findAll")
    @Decrypt
    @Encrypt
    public Result<PageInfo<UserDeleteLogVo>> findAll(UserDeleteLogVo vo) {
        return userDeleteLogService.page(vo);
    }



}
