@@ -4,28 +4,27 @@ package stringsvc
44
55import entity "github.com/devimteam/microgen/example/svc/entity"
66
7- type UppercaseRequest struct {
8- StringsMap map [string ]string `json:"strings_map"`
9- }
7+ type (
8+ UppercaseRequest struct {
9+ StringsMap map [string ]string `json:"strings_map"`
10+ }
11+ UppercaseResponse struct {
12+ Ans string `json:"ans"`
13+ }
1014
11- type UppercaseResponse struct {
12- Ans string `json:"ans"`
13- }
15+ CountRequest struct {
16+ Text string `json:"text"`
17+ Symbol string `json:"symbol"`
18+ }
19+ CountResponse struct {
20+ Count int `json:"count"`
21+ Positions []int `json:"positions"`
22+ }
1423
15- type CountRequest struct {
16- Text string `json:"text"`
17- Symbol string `json:"symbol"`
18- }
19-
20- type CountResponse struct {
21- Count int `json:"count"`
22- Positions []int `json:"positions"`
23- }
24-
25- type TestCaseRequest struct {
26- Comments []* entity.Comment `json:"comments"`
27- }
28-
29- type TestCaseResponse struct {
30- Tree map [string ]int `json:"tree"`
31- }
24+ TestCaseRequest struct {
25+ Comments []* entity.Comment `json:"comments"`
26+ }
27+ TestCaseResponse struct {
28+ Tree map [string ]int `json:"tree"`
29+ }
30+ )
0 commit comments