Skip to content

Commit

Permalink
perf: perf serviceController template import sort
Browse files Browse the repository at this point in the history
  • Loading branch information
rookie-luochao committed Nov 1, 2024
1 parent 77040dc commit 5c1e70d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tricky-swans-exercise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'openapi-ts-request': patch
---

perf: perf serviceController template import sort
2 changes: 1 addition & 1 deletion templates/serviceController.njk
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable */
// @ts-ignore
{{ requestImportStatement }}
import * as {{ namespace }} from './{{ interfaceFileName }}';
{{ requestImportStatement }}

{% for api in list -%}
/** {{ api.desc if api.desc else '此处后端没有提供注释' }} {{api.method | upper}} {{ api.pathInComment | safe }} */
Expand Down

0 comments on commit 5c1e70d

Please sign in to comment.