| | |
| | | package com.kidgrow.oauth2.controller; |
| | | |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oauth2.model.TokenVo; |
| | | import com.kidgrow.oauth2.service.ITokensService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.Map; |
| | | |
| | |
| | | public PageResult<TokenVo> list(@RequestParam Map<String, Object> params,@RequestParam(value = "tenantId") String tenantId) { |
| | | return tokensService.listTokens(params, tenantId); |
| | | } |
| | | /** |
| | | * 获取用户是否登录 |
| | | * @param map |
| | | * @return |
| | | */ |
| | | @PostMapping("getName") |
| | | @ApiOperation(value = "token列表") |
| | | public ResultBody isRegUser(@RequestBody Map<String, Object> map) { |
| | | |
| | | return tokensService.getBeforLogin(map); |
| | | } |
| | | } |