Skip to main content

update_friend_link

Function update_friend_link 

Source
pub async fn update_friend_link(
    id: i32,
    name: String,
    url: String,
    avatar_url: Option<String>,
    description: String,
    sort_order: i32,
    is_active: bool,
) -> Result<FriendLink, ServerFnError>
Expand description

更新友链(含启用状态)。仅 admin。

行不存在返回 AppError::NotFound;成功后同样失效缓存与 SSR。

§Handler information

  • Method: post
  • Path: <auto>