# api-result
**Repository Path**: cloud021/api-result
## Basic Information
- **Project Name**: api-result
- **Description**: API接口返回结果规范化解决方案
- **Primary Language**: Java
- **License**: MIT
- **Default Branch**: main
- **Homepage**: https://github.com/fengwenyi/api-result
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 7
- **Created**: 2024-05-15
- **Last Updated**: 2024-05-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
api-result
一套RESTful风格API接口响应参数规范化的解决方案。
## 特性
- 规范化。
- 统一化。
- 标准化。
## 快速开始
### Maven
```xml
com.fengwenyi
api-result
2.7.4
```
### 代码示例
```java
@RestController
@RequestMapping("/api")
public class ApiController {
@RequestMapping("/demo")
public ResultTemplate demo() {
return ResultTemplate.success();
}
}
```
### 请求
```shell
curl http://localhost:8080/api/demo
```
### 响应示例
```json
{
"code":"SUCCESS",
"message":"Success",
"success":true,
"header":null,
"body":null,
"date":"2022-07-16T20:21:23.017"
}
```
## 其他
- [文档](https://www.yuque.com/fengwenyi/api-result)
- [Maven仓库](https://mvnrepository.com/artifact/com.fengwenyi/api-result)
- [更新日志](LOG.md)