Skip to content

Commit

Permalink
refactor(generator): change *Response in *APIResponse to *APIResponse…
Browse files Browse the repository at this point in the history
…Model
  • Loading branch information
bububa committed Jul 1, 2021
1 parent 16b5f63 commit f1d7c85
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Binary file modified bin/generator
Binary file not shown.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package opentaobao

const (
GitVersion = "v1.1.5"
GitCommit = "2f953b638"
GitCommit = "be047348b"
GitDate = "<no value>"
GitBuiltBy = "unknown"
)
4 changes: 2 additions & 2 deletions metadata/template/response.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ import (
*/
type {{ .Name }}APIResponse struct {
model.CommonResponse
{{ .Name }}Response
{{ .Name }}APIResponseModel
}

// {{ .ChineseName }} 成功返回结果
type {{ .Name }}Response struct {
type {{ .Name }}APIResponseModel struct {
XMLName xml.Name `xml:"{{ .ResponseKey }}"`
{{- if eq .HasRequestId false }}
// 平台颁发的每次请求访问的唯一标识
Expand Down

0 comments on commit f1d7c85

Please sign in to comment.