feat: align ids to int64
This commit is contained in:
@@ -29,7 +29,7 @@ func (c *contents) List(ctx fiber.Ctx, filter *dto.SuperContentListFilter) (*req
|
||||
|
||||
// Update content status
|
||||
//
|
||||
// @Router /super/v1/tenants/:tenantID/contents/:contentID/status [patch]
|
||||
// @Router /super/v1/tenants/:tenantID<int>/contents/:contentID<int>/status [patch]
|
||||
// @Summary Update content status
|
||||
// @Description Update content status
|
||||
// @Tags Content
|
||||
|
||||
@@ -13,7 +13,7 @@ type LoginResponse struct {
|
||||
}
|
||||
|
||||
type User struct {
|
||||
ID string `json:"id"`
|
||||
ID int64 `json:"id"`
|
||||
Phone string `json:"phone"`
|
||||
Nickname string `json:"nickname"`
|
||||
Avatar string `json:"avatar"`
|
||||
|
||||
@@ -29,7 +29,7 @@ func (c *orders) List(ctx fiber.Ctx, filter *dto.SuperOrderListFilter) (*request
|
||||
|
||||
// Get order
|
||||
//
|
||||
// @Router /super/v1/orders/:id [get]
|
||||
// @Router /super/v1/orders/:id<int> [get]
|
||||
// @Summary Get order
|
||||
// @Description Get order
|
||||
// @Tags Order
|
||||
@@ -44,7 +44,7 @@ func (c *orders) Get(ctx fiber.Ctx, id int64) (*dto.SuperOrderDetail, error) {
|
||||
|
||||
// Refund order
|
||||
//
|
||||
// @Router /super/v1/orders/:id/refund [post]
|
||||
// @Router /super/v1/orders/:id<int>/refund [post]
|
||||
// @Summary Refund order
|
||||
// @Description Refund order
|
||||
// @Tags Order
|
||||
|
||||
@@ -45,7 +45,7 @@ func (c *tenants) Create(ctx fiber.Ctx, form *dto.TenantCreateForm) error {
|
||||
|
||||
// Get tenant
|
||||
//
|
||||
// @Router /super/v1/tenants/:id [get]
|
||||
// @Router /super/v1/tenants/:id<int> [get]
|
||||
// @Summary Get tenant
|
||||
// @Description Get tenant
|
||||
// @Tags Tenant
|
||||
@@ -60,7 +60,7 @@ func (c *tenants) Get(ctx fiber.Ctx, id int64) (*dto.TenantItem, error) {
|
||||
|
||||
// Update tenant status
|
||||
//
|
||||
// @Router /super/v1/tenants/:id/status [patch]
|
||||
// @Router /super/v1/tenants/:id<int>/status [patch]
|
||||
// @Summary Update tenant status
|
||||
// @Description Update tenant status
|
||||
// @Tags Tenant
|
||||
@@ -77,7 +77,7 @@ func (c *tenants) UpdateStatus(ctx fiber.Ctx, id int64, form *dto.TenantStatusUp
|
||||
|
||||
// Update tenant expire
|
||||
//
|
||||
// @Router /super/v1/tenants/:id [patch]
|
||||
// @Router /super/v1/tenants/:id<int> [patch]
|
||||
// @Summary Update tenant expire
|
||||
// @Description Update tenant expire
|
||||
// @Tags Tenant
|
||||
|
||||
@@ -30,7 +30,7 @@ func (c *users) List(ctx fiber.Ctx, filter *dto.UserListFilter) (*requests.Pager
|
||||
|
||||
// Get user
|
||||
//
|
||||
// @Router /super/v1/users/:id [get]
|
||||
// @Router /super/v1/users/:id<int> [get]
|
||||
// @Summary Get user
|
||||
// @Description Get user
|
||||
// @Tags User
|
||||
@@ -45,7 +45,7 @@ func (c *users) Get(ctx fiber.Ctx, id int64) (*dto.UserItem, error) {
|
||||
|
||||
// Update user status
|
||||
//
|
||||
// @Router /super/v1/users/:id/status [patch]
|
||||
// @Router /super/v1/users/:id<int>/status [patch]
|
||||
// @Summary Update user status
|
||||
// @Description Update user status
|
||||
// @Tags User
|
||||
@@ -62,7 +62,7 @@ func (c *users) UpdateStatus(ctx fiber.Ctx, id int64, form *dto.UserStatusUpdate
|
||||
|
||||
// Update user roles
|
||||
//
|
||||
// @Router /super/v1/users/:id/roles [patch]
|
||||
// @Router /super/v1/users/:id<int>/roles [patch]
|
||||
// @Summary Update user roles
|
||||
// @Description Update user roles
|
||||
// @Tags User
|
||||
|
||||
Reference in New Issue
Block a user