From 1db01717fe97fbbda63a6c3d55a384537a11ee0f Mon Sep 17 00:00:00 2001 From: denghui <1016848185@qq.com> Date: Wed, 4 Jun 2025 17:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=94=A8=E6=88=B7=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/user/v1/user.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/api/user/v1/user.go b/api/user/v1/user.go index a00006b..e397582 100644 --- a/api/user/v1/user.go +++ b/api/user/v1/user.go @@ -1 +1,17 @@ package user + +import "github.com/gogf/gf/v2/frame/g" + +type InfoReq struct { + g.Meta `path:"/user/info" method:"get" tags:"User" summary:"获取用户信息"` +} + +type InfoRes struct { +} + +type ListReq struct { + g.Meta `path:"/user" method:"get" tags:"User" summary:"获取用户列表"` + Page int `json:"page" v:"required" dc:"页数"` + Size int `json:"size" v:"required" dc:"每页数量"` + Nickname string `json:"nickname" dc:"昵称"` +}