初始化项目

This commit is contained in:
2025-12-06 15:41:38 +08:00
parent fd08b8925f
commit a42cca3c24
11 changed files with 59 additions and 59 deletions

View File

@@ -6,7 +6,7 @@ import (
// CreateApplicationReq 创建应用请求
type CreateApplicationReq struct {
g.Meta `path:"createApplication" method:"post" summary:"创建应用"`
g.Meta `path:"/createApplication" method:"post" summary:"创建应用"`
TenantID int64 `json:"tenantId" v:"required#租户ID不能为空"`
Name string `json:"name" v:"required#应用名称不能为空"`
@@ -30,7 +30,7 @@ type CreateApplicationRes struct {
// UpdateApplicationReq 更新应用请求
type UpdateApplicationReq struct {
g.Meta `path:"updateApplication" method:"put" summary:"更新应用"`
g.Meta `path:"/updateApplication" method:"put" summary:"更新应用"`
ID int64 `json:"id" v:"required#应用ID不能为空"`
Name string `json:"name"`
@@ -51,7 +51,7 @@ type UpdateApplicationRes struct {
// GetApplicationReq 获取应用请求
type GetApplicationReq struct {
g.Meta `path:"getApplication" method:"get" summary:"获取应用信息"`
g.Meta `path:"/getApplication" method:"get" summary:"获取应用信息"`
ID int64 `json:"id" v:"required#应用ID不能为空"`
}
@@ -78,7 +78,7 @@ type GetApplicationRes struct {
// ListApplicationsReq 获取应用列表请求
type ListApplicationsReq struct {
g.Meta `path:"listApplications" method:"get" summary:"获取应用列表"`
g.Meta `path:"/listApplications" method:"get" summary:"获取应用列表"`
TenantID int64 `json:"tenantId" v:"required#租户ID不能为空"`
Platform string `json:"platform"`
@@ -114,7 +114,7 @@ type ApplicationItem struct {
// ResetAPIKeysReq 重置API密钥请求
type ResetAPIKeysReq struct {
g.Meta `path:"/applications-reset-keys" method:"post" summary:"重置API密钥"`
g.Meta `path:"/resetAPIKeys" method:"post" summary:"重置API密钥"`
ID int64 `json:"id" v:"required#应用ID不能为空"`
}
@@ -127,7 +127,7 @@ type ResetAPIKeysRes struct {
// ValidateApplicationReq 验证应用请求
type ValidateApplicationReq struct {
g.Meta `path:"/applications-validate" method:"post" summary:"验证应用权限"`
g.Meta `path:"/validateApplication" method:"post" summary:"验证应用权限"`
AppKey string `json:"appKey" v:"required#应用密钥不能为空"`
AppSecret string `json:"appSecret" v:"required#应用密钥不能为空"`
@@ -146,7 +146,7 @@ type ValidateApplicationRes struct {
// DeleteApplicationReq 删除应用请求
type DeleteApplicationReq struct {
g.Meta `path:"/applications" method:"delete" summary:"删除应用"`
g.Meta `path:"/deleteApplication" method:"delete" summary:"删除应用"`
ID int64 `json:"id" v:"required#应用ID不能为空"`
}