com.didiglobal.logi.security.controller.v1.CommonController Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of logi-security-spring-boot-starter Show documentation
Show all versions of logi-security-spring-boot-starter Show documentation
logi-security 提供项目大多都需要的一些基础功能(用户、角色、权限、登录、注册、操作记录)
package com.didiglobal.logi.security.controller.v1;
import com.didiglobal.logi.security.common.Result;
import com.didiglobal.logi.security.common.constant.Constants;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;
/**
* @author cjm
*/
@RestController
@Api(value = "logi-security-common相关API接口", tags = "logi-security-common相关API接口")
@RequestMapping(Constants.V1 + "/logi-security/common")
public class CommonController {
@GetMapping("/pubKey")
@ApiOperation(value = "获取公共密钥", notes = "用于加密登陆信息的RSA公钥")
public Result pubKey() {
// 获取公共密钥
return Result.success();
}
@GetMapping("/heart")
@ApiOperation(value = "http请求测试", notes = "http请求测试")
public Result health() {
// 心跳工具
return Result.success("一个普通的请求响应了普通的结果");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy