feat: 更新路由参数格式,增强路由一致性和可读性
This commit is contained in:
@@ -55,7 +55,7 @@ func (*tenant) create(ctx fiber.Ctx, form *dto.TenantCreateForm) (*models.Tenant
|
||||
// @Param filter query tenantdto.AdminTenantUserListFilter true "Filter"
|
||||
// @Success 200 {object} requests.Pager{items=dto.SuperTenantUserItem}
|
||||
//
|
||||
// @Router /super/v1/tenants/:tenantID/users [get]
|
||||
// @Router /super/v1/tenants/:tenantID<int>/users [get]
|
||||
// @Bind tenantID path
|
||||
// @Bind filter query
|
||||
func (*tenant) users(ctx fiber.Ctx, tenantID int64, filter *tenantdto.AdminTenantUserListFilter) (*requests.Pager, error) {
|
||||
@@ -71,7 +71,7 @@ func (*tenant) users(ctx fiber.Ctx, tenantID int64, filter *tenantdto.AdminTenan
|
||||
// @Param tenantID path int64 true "TenantID"
|
||||
// @Param form body dto.TenantExpireUpdateForm true "Form"
|
||||
//
|
||||
// @Router /super/v1/tenants/:tenantID [patch]
|
||||
// @Router /super/v1/tenants/:tenantID<int> [patch]
|
||||
// @Bind tenantID path
|
||||
// @Bind form body
|
||||
func (*tenant) updateExpire(ctx fiber.Ctx, tenantID int64, form *dto.TenantExpireUpdateForm) error {
|
||||
@@ -92,7 +92,7 @@ func (*tenant) updateExpire(ctx fiber.Ctx, tenantID int64, form *dto.TenantExpir
|
||||
// @Param tenantID path int64 true "TenantID"
|
||||
// @Param form body dto.TenantStatusUpdateForm true "Form"
|
||||
//
|
||||
// @Router /super/v1/tenants/:tenantID/status [patch]
|
||||
// @Router /super/v1/tenants/:tenantID<int>/status [patch]
|
||||
// @Bind tenantID path
|
||||
// @Bind form body
|
||||
func (*tenant) updateStatus(ctx fiber.Ctx, tenantID int64, form *dto.TenantStatusUpdateForm) error {
|
||||
|
||||
Reference in New Issue
Block a user