From 96788ec1f0145f9ee3b314bdce048978f4402dfa Mon Sep 17 00:00:00 2001 From: TianJun Date: Thu, 29 Apr 2021 12:36:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B5=8B=E8=AF=95=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rest/urls.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rest/urls.go b/src/rest/urls.go index 85199ec..b2a6a1c 100644 --- a/src/rest/urls.go +++ b/src/rest/urls.go @@ -25,6 +25,8 @@ type RequestApi struct { var Urls = [...]RequestApi{ // 定义请求方式和路径 {Mode: "get", RelativePath: "/sn", HandleFunction: DescribeSign}, + // 获取所有用户 + {Mode: "get", RelativePath: "/users", HandleFunction: api.DescribeUsers}, // v1 // 获取所有学生 {GroupName: "v1", Mode: "get", RelativePath: "/students", HandleFunction: v1.DescribeStudents},