add: app data rename method
This commit is contained in:
parent
35b66c94d0
commit
6f2d556c65
10 changed files with 100 additions and 12 deletions
|
@ -439,6 +439,7 @@ pub fn routes() -> Router {
|
|||
.route("/app_data", post(app_data::create_request))
|
||||
.route("/app_data/app", get(app_data::get_app_request))
|
||||
.route("/app_data/{id}", delete(app_data::delete_request))
|
||||
.route("/app_data/{id}/key", post(app_data::update_key_request))
|
||||
.route("/app_data/{id}/value", post(app_data::update_value_request))
|
||||
.route("/app_data/query", post(app_data::query_request))
|
||||
.route("/app_data/query", delete(app_data::delete_query_request))
|
||||
|
@ -1176,6 +1177,11 @@ pub struct UpdateUploadAlt {
|
|||
pub alt: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UpdateAppDataKey {
|
||||
pub key: String,
|
||||
}
|
||||
|
||||
#[derive(Deserialize)]
|
||||
pub struct UpdateAppDataValue {
|
||||
pub value: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue