Skip to content

Commit 618024e

Browse files
committed
feat: code update
1 parent 5ef8316 commit 618024e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+10185
-4139
lines changed

.go-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.23.2
1+
1.23.3

api/openapi/fakeserver/v1/fakeserver.swagger.json

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"200": {
9292
"description": "A successful response.",
9393
"schema": {
94-
"$ref": "#/definitions/v1OrderReply"
94+
"$ref": "#/definitions/v1GetOrderResponse"
9595
}
9696
},
9797
"default": {
@@ -119,8 +119,7 @@
119119
"200": {
120120
"description": "A successful response.",
121121
"schema": {
122-
"type": "object",
123-
"properties": {}
122+
"$ref": "#/definitions/v1DeleteOrderResponse"
124123
}
125124
},
126125
"default": {
@@ -148,8 +147,7 @@
148147
"200": {
149148
"description": "A successful response.",
150149
"schema": {
151-
"type": "object",
152-
"properties": {}
150+
"$ref": "#/definitions/v1UpdateOrderResponse"
153151
}
154152
},
155153
"default": {
@@ -246,6 +244,17 @@
246244
}
247245
}
248246
},
247+
"v1DeleteOrderResponse": {
248+
"type": "object"
249+
},
250+
"v1GetOrderResponse": {
251+
"type": "object",
252+
"properties": {
253+
"order": {
254+
"$ref": "#/definitions/v1Order"
255+
}
256+
}
257+
},
249258
"v1ListOrderResponse": {
250259
"type": "object",
251260
"properties": {
@@ -256,12 +265,12 @@
256265
"Orders": {
257266
"type": "array",
258267
"items": {
259-
"$ref": "#/definitions/v1OrderReply"
268+
"$ref": "#/definitions/v1Order"
260269
}
261270
}
262271
}
263272
},
264-
"v1OrderReply": {
273+
"v1Order": {
265274
"type": "object",
266275
"properties": {
267276
"orderID": {
@@ -286,6 +295,9 @@
286295
"format": "date-time"
287296
}
288297
}
298+
},
299+
"v1UpdateOrderResponse": {
300+
"type": "object"
289301
}
290302
}
291303
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "miniblog/v1/base.proto",
5+
"version": "version not set"
6+
},
7+
"consumes": [
8+
"application/json"
9+
],
10+
"produces": [
11+
"application/json"
12+
],
13+
"paths": {},
14+
"definitions": {
15+
"protobufAny": {
16+
"type": "object",
17+
"properties": {
18+
"@type": {
19+
"type": "string"
20+
}
21+
},
22+
"additionalProperties": {}
23+
},
24+
"rpcStatus": {
25+
"type": "object",
26+
"properties": {
27+
"code": {
28+
"type": "integer",
29+
"format": "int32"
30+
},
31+
"message": {
32+
"type": "string"
33+
},
34+
"details": {
35+
"type": "array",
36+
"items": {
37+
"$ref": "#/definitions/protobufAny"
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"swagger": "2.0",
3+
"info": {
4+
"title": "miniblog/v1/example.proto",
5+
"version": "version not set"
6+
},
7+
"consumes": [
8+
"application/json"
9+
],
10+
"produces": [
11+
"application/json"
12+
],
13+
"paths": {},
14+
"definitions": {
15+
"protobufAny": {
16+
"type": "object",
17+
"properties": {
18+
"@type": {
19+
"type": "string"
20+
}
21+
},
22+
"additionalProperties": {}
23+
},
24+
"rpcStatus": {
25+
"type": "object",
26+
"properties": {
27+
"code": {
28+
"type": "integer",
29+
"format": "int32"
30+
},
31+
"message": {
32+
"type": "string"
33+
},
34+
"details": {
35+
"type": "array",
36+
"items": {
37+
"$ref": "#/definitions/protobufAny"
38+
}
39+
}
40+
}
41+
}
42+
}
43+
}

0 commit comments

Comments
 (0)