update samples

This commit is contained in:
William Cheng 2021-01-31 14:27:46 +08:00
parent b4154be8d0
commit 370d0e82f8
4 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ openssl = {version = "0.10", optional = true }
async-trait = "0.1.24"
chrono = { version = "0.4", features = ["serde"] }
futures = "0.3"
swagger = "5.0.0-alpha-1"
swagger = "5.0.2"
log = "0.4.0"
mime = "0.3"

View File

@ -5,13 +5,14 @@ use futures::Stream;
use std::error::Error;
use std::task::{Poll, Context};
use swagger::{ApiError, ContextWrapper};
use serde::{Serialize, Deserialize};
type ServiceError = Box<dyn Error + Send + Sync + 'static>;
pub const BASE_PATH: &'static str = "";
pub const API_VERSION: &'static str = "1.0";
#[derive(Debug, PartialEq)]
#[derive(Debug, PartialEq, Serialize, Deserialize)]
pub enum PingGetResponse {
/// OK
OK

View File

@ -3,4 +3,3 @@
use crate::models;
#[cfg(any(feature = "client", feature = "server"))]
use crate::header;