Implement /api/serial_code/events
This commit is contained in:
16
src/router/serial_code.rs
Normal file
16
src/router/serial_code.rs
Normal file
@ -0,0 +1,16 @@
|
||||
use json;
|
||||
use json::object;
|
||||
use crate::router::global;
|
||||
use actix_web::{HttpResponse, HttpRequest};
|
||||
|
||||
pub fn events(_req: HttpRequest) -> HttpResponse {
|
||||
|
||||
let resp = object!{
|
||||
"code": 0,
|
||||
"server_time": global::timestamp(),
|
||||
"data": {
|
||||
"serial_code_list": []
|
||||
}
|
||||
};
|
||||
global::send(resp)
|
||||
}
|
Reference in New Issue
Block a user