|
|
@ -68,7 +68,7 @@ func (u *Kit) Generate(plugin *protogen.Plugin) error { |
|
|
|
if common != "" { |
|
|
|
if common != "" { |
|
|
|
t.P(` `, common) |
|
|
|
t.P(` `, common) |
|
|
|
} |
|
|
|
} |
|
|
|
t.P(getInd(1), `static async `, m.Desc.Name(), `(data :`, m.Input.Desc.Name(), `, param?: Config<loginRequest>):Promise<`, m.Output.Desc.Name(), `>{`) |
|
|
|
t.P(getInd(1), `static async `, m.Desc.Name(), `(data :`, m.Input.Desc.Name(), `, param?: Config<`, m.Input.Desc.Name(), `>):Promise<`, m.Output.Desc.Name(), `>{`) |
|
|
|
t.P(getInd(2), `return http<`, m.Input.Desc.Name(), `, `, m.Output.Desc.Name(), `>('`, path, `', {`) |
|
|
|
t.P(getInd(2), `return http<`, m.Input.Desc.Name(), `, `, m.Output.Desc.Name(), `>('`, path, `', {`) |
|
|
|
t.P(getInd(3), `...param,`) |
|
|
|
t.P(getInd(3), `...param,`) |
|
|
|
t.P(getInd(3), `data: data,`) |
|
|
|
t.P(getInd(3), `data: data,`) |
|
|
|