feat(editor): update
This commit is contained in:
@@ -28,7 +28,7 @@ func (t *Tenant) Get(ctx fiber.Ctx, user *models.User, id string) (*dto.TenantPr
|
||||
if user != nil {
|
||||
uid = user.ID
|
||||
}
|
||||
return services.Tenant.GetPublicProfile(ctx.Context(), uid, id)
|
||||
return services.Tenant.GetPublicProfile(ctx, uid, id)
|
||||
}
|
||||
|
||||
// Follow a tenant
|
||||
@@ -44,7 +44,7 @@ func (t *Tenant) Get(ctx fiber.Ctx, user *models.User, id string) (*dto.TenantPr
|
||||
// @Bind user local key(__ctx_user)
|
||||
// @Bind id path
|
||||
func (t *Tenant) Follow(ctx fiber.Ctx, user *models.User, id string) error {
|
||||
return services.Tenant.Follow(ctx.Context(), user.ID, id)
|
||||
return services.Tenant.Follow(ctx, user.ID, id)
|
||||
}
|
||||
|
||||
// Unfollow a tenant
|
||||
@@ -60,5 +60,5 @@ func (t *Tenant) Follow(ctx fiber.Ctx, user *models.User, id string) error {
|
||||
// @Bind user local key(__ctx_user)
|
||||
// @Bind id path
|
||||
func (t *Tenant) Unfollow(ctx fiber.Ctx, user *models.User, id string) error {
|
||||
return services.Tenant.Unfollow(ctx.Context(), user.ID, id)
|
||||
return services.Tenant.Unfollow(ctx, user.ID, id)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user