File tree Expand file tree Collapse file tree 6 files changed +10
-10
lines changed
Expand file tree Collapse file tree 6 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package v1
33import "github.com/oldme-git/oldme-api/internal/model"
44
55type List struct {
6- Id model.Id
6+ Id model.Id `json:"id"`
77 BookId model.Id `json:"book_id"`
88 Sentence string `json:"sentence"`
99}
Original file line number Diff line number Diff line change 88type CreReq struct {
99 g.Meta `path:"tag/create" method:"post" sm:"新增" tags:"标签"`
1010 GrpId model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
11- Name string `v:"required|length:1, 30"`
11+ Name string `json:"name" v:"required|length:1, 30"`
1212}
1313
1414type CreRes struct {
@@ -18,7 +18,7 @@ type UpdReq struct {
1818 g.Meta `path:"tag/update/{id}" method:"post" sm:"修改" tags:"标签"`
1919 * model.IdInput
2020 GrpId model.Id `json:"grpId" v:"required|integer|between:1,4294967295"`
21- Name string `v:"required|length:1, 30"`
21+ Name string `json:"name" v:"required|length:1, 30"`
2222}
2323
2424type UpdRes struct {
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ package v1
33import "github.com/oldme-git/oldme-api/internal/model"
44
55type List struct {
6- Id model.Id
7- Name string
6+ Id model.Id `json:"id"`
7+ Name string `json:"name"`
88}
Original file line number Diff line number Diff line change 77
88type CreReq struct {
99 g.Meta `path:"tag/group/create" method:"post" sm:"新增" tags:"标签分类"`
10- Name string `v:"required|length:1, 30"`
10+ Name string `json:"name" v:"required|length:1, 30"`
1111}
1212
1313type CreRes struct {
@@ -16,7 +16,7 @@ type CreRes struct {
1616type UpdReq struct {
1717 g.Meta `path:"tag/group/update/{id}" method:"post" sm:"修改" tags:"标签分类"`
1818 * model.IdInput
19- Name string `v:"required|length:1, 30"`
19+ Name string `json:"name" v:"required|length:1, 30"`
2020}
2121
2222type UpdRes struct {
Original file line number Diff line number Diff line change @@ -3,6 +3,6 @@ package v1
33import "github.com/oldme-git/oldme-api/internal/model"
44
55type List struct {
6- Id model.Id
7- Name string
6+ Id model.Id `json:"id"`
7+ Name string `json:"name"`
88}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import (
1515)
1616
1717const (
18- VERSION = "v1.5.0 "
18+ VERSION = "v1.5.1 "
1919)
2020
2121func main () {
You can’t perform that action at this time.
0 commit comments