package com.fdkankan.manage.controller; import com.fdkankan.manage.common.ResultData; import com.fdkankan.manage.entity.AuthorizeRtk; import com.fdkankan.manage.service.IAuthorizeRtkService; import com.fdkankan.manage.vo.request.AuthorizeParam; import com.fdkankan.manage.vo.request.AuthorizeRtkParam; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** *
* 前端控制器 *
* * @author * @since 2025-03-24 */ @RestController @RequestMapping("/service/manage/authorizeRtk") public class AuthorizeRtkController { @Autowired IAuthorizeRtkService authorizeRtkService; @PostMapping("/addAuth") public ResultData addAuth(@RequestBody AuthorizeRtk authorizeRtk){ authorizeRtkService.addAuth(authorizeRtk); return ResultData.ok(); } @PostMapping("/authLog") public ResultData authLog(@RequestBody AuthorizeRtkParam param){ return ResultData.ok(authorizeRtkService.pageList(param)); } }