feat: follow llm.txt
This commit is contained in:
@@ -56,7 +56,7 @@ func (ctl *auth) login(ctx fiber.Ctx, form *dto.LoginForm) (*dto.LoginResponse,
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {object} dto.LoginResponse "成功"
|
||||
// @Success 200 {object} dto.LoginResponse "成功"
|
||||
//
|
||||
// @Router /super/v1/auth/token [get]
|
||||
func (ctl *auth) token(ctx fiber.Ctx) (*dto.LoginResponse, error) {
|
||||
|
||||
@@ -18,7 +18,7 @@ import (
|
||||
// Routes implements the HttpRoute contract and provides route registration
|
||||
// for all controllers in the super module.
|
||||
//
|
||||
// @provider contracts.HttpRoute atom.GroupRoutes
|
||||
// @provider contracts.HttpRoute atom.GroupRoutes
|
||||
type Routes struct {
|
||||
log *log.Entry `inject:"false"`
|
||||
middlewares *middlewares.Middlewares
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package super
|
||||
|
||||
func (r *Routes) Path() string {
|
||||
return "/super"
|
||||
return "/super/v1"
|
||||
}
|
||||
|
||||
func (r *Routes) Middlewares() []any {
|
||||
|
||||
@@ -20,7 +20,7 @@ type tenant struct{}
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param filter query dto.TenantFilter true "Filter"
|
||||
// @Param filter query dto.TenantFilter true "Filter"
|
||||
// @Success 200 {object} requests.Pager{items=dto.TenantItem}
|
||||
//
|
||||
// @Router /super/v1/tenants [get]
|
||||
@@ -72,7 +72,7 @@ func (*tenant) updateStatus(ctx fiber.Ctx, tenantID int64, form *dto.TenantStatu
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {array} requests.KV
|
||||
// @Success 200 {array} requests.KV
|
||||
//
|
||||
// @Router /super/v1/tenants/statuses [get]
|
||||
// @Bind userID path
|
||||
|
||||
@@ -20,7 +20,7 @@ type user struct{}
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param filter query dto.UserPageFilter true "Filter"
|
||||
// @Param filter query dto.UserPageFilter true "Filter"
|
||||
// @Success 200 {object} requests.Pager{items=dto.UserItem}
|
||||
//
|
||||
// @Router /super/v1/users [get]
|
||||
@@ -36,7 +36,7 @@ func (*user) list(ctx fiber.Ctx, filter *dto.UserPageFilter) (*requests.Pager, e
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param userID path int64 true "UserID"
|
||||
// @Param form body dto.UserStatusUpdateForm true "Form"
|
||||
// @Param form body dto.UserStatusUpdateForm true "Form"
|
||||
//
|
||||
// @Router /super/v1/users/:userID/status [patch]
|
||||
// @Bind userID path
|
||||
@@ -51,7 +51,7 @@ func (*user) updateStatus(ctx fiber.Ctx, userID int64, form *dto.UserStatusUpdat
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {array} requests.KV
|
||||
// @Success 200 {array} requests.KV
|
||||
//
|
||||
// @Router /super/v1/users/statuses [get]
|
||||
// @Bind userID path
|
||||
@@ -68,7 +68,7 @@ func (*user) statusList(ctx fiber.Ctx) ([]requests.KV, error) {
|
||||
// @Tags Super
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Success 200 {array} dto.UserStatistics
|
||||
// @Success 200 {array} dto.UserStatistics
|
||||
//
|
||||
// @Router /super/v1/users/statistics [get]
|
||||
// @Bind userID path
|
||||
|
||||
Reference in New Issue
Block a user