新增测试路由

This commit is contained in:
TianJun 2021-04-29 12:36:01 +08:00
parent 60e9e89f87
commit 96788ec1f0
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,8 @@ type RequestApi struct {
var Urls = [...]RequestApi{ var Urls = [...]RequestApi{
// 定义请求方式和路径 // 定义请求方式和路径
{Mode: "get", RelativePath: "/sn", HandleFunction: DescribeSign}, {Mode: "get", RelativePath: "/sn", HandleFunction: DescribeSign},
// 获取所有用户
{Mode: "get", RelativePath: "/users", HandleFunction: api.DescribeUsers},
// v1 // v1
// 获取所有学生 // 获取所有学生
{GroupName: "v1", Mode: "get", RelativePath: "/students", HandleFunction: v1.DescribeStudents}, {GroupName: "v1", Mode: "get", RelativePath: "/students", HandleFunction: v1.DescribeStudents},