xiangZr-hhh 935003c126
Some checks failed
JslGroup/JslDeveloper/JSL_OrganizeInternalOA/pipeline/head There was a failure building this commit
用户信息获取接口添加角色控制
项目编辑、删除
2024-03-12 11:24:25 +08:00

31 lines
834 B
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.jsl.oa.controllers;
import com.jsl.oa.utils.BaseResponse;
import com.jsl.oa.utils.ResultUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.HashMap;
/**
* @author xiaofeng
*/
@Slf4j
@RestController
public class IndexController {
@Value("${maven.timestamp}")
private String timestamp;
@RequestMapping("/")
public BaseResponse index() {
log.info("请求接口[GET]: /");
HashMap<String, String> newMap = new HashMap<>();
newMap.put("timestamp", "构建时间:" + timestamp);
return ResultUtil.success("欢迎使用JSL-OA系统服务器处于正常状态", newMap);
}
}