INNER CODE UNIT · Rust
get_flag_status
zly2006/zhihu-plus-plus · aigc-vote-server/src/lib.rs:299
async fn get_flag_status(
State(state): State<AppState>,
AxumPath((content_type, content_id)): AxumPath<(String, String)>,
axum::extract::Query(query): axum::extract::Query<AigcFlagStatusQuery>,
) -> Result<Json<AigcFlagStatusResponse>, ServiceError> {
validate_content_identity(&content_type, &content_id)?;
Ok(Json(
state
.store
.flag_status(
content_type,
content_id,
query.client_id,
query.voter_id,
query.voter_name,
query.voter_url_token,
)