refactor: add Ext postfix for APIExt types
This commit is contained in:
1 parent
0d379bf248
commit
9a6e414793
2 files changed
+12
-7
No files matched your search
@@ -4,9 +4,9 @@ use crate::title::methods::{APIExt, APIMethod};
|
||||
fn api_implement(api_names: Vec<String>) {
|
||||
for api_name in api_names {
|
||||
crabtime::output!(
|
||||
pub struct {{api_name}};
|
||||
pub struct {{api_name}}Ext;
|
||||
|
||||
impl APIExt for {{api_name}} {
|
||||
impl APIExt for {{api_name}}Ext {
|
||||
const METHOD: APIMethod = APIMethod::{{api_name}};
|
||||
type Payload = crate::title::model::{{api_name}};
|
||||
type Response = crate::title::model::{{api_name}}Resp;
|
||||
|
||||
Reference in new issue
Block a user