Function backend::routes::content::update_reply [−][src]
pub async fn update_reply(
auth: Auth,
db: Connection<PgDb>,
reply_update_info: Json<ReplyUpdateInfo>,
producer: Connection<PulsarMq>
) -> (Status, Result<String, Json<ErrorResponse>>)
Expand description
Update Reply
Parameters
Auth
: Authenticated userConnection<PgDb>
: Postgres connectionJson<ReplyUpdateInfo>
: Updated reply information
Returns
Status
: HTTP statusString
: “Success”
Errors
ErrorResponse
: Error messageErrorCode::PostNotExist
ErrorCode::UserNotExist
ErrorCode::UserForbidden
ErrorCode::BurrowInvalid
ErrorCode::DatabaseErr