refactor: add Ext postfix for APIExt types
This commit is contained in:
@@ -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