Skip to content

Commit 1dba13a

Browse files
committed
Merge remote-tracking branch 'github/test' into release/1.0.7
2 parents 7fbee4d + b88e6ff commit 1dba13a

File tree

104 files changed

+1527
-326
lines changed

Some content is hidden

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

104 files changed

+1527
-326
lines changed

cmd/answer/wire_gen.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs.go

Lines changed: 99 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3932,6 +3932,38 @@ const docTemplate = `{
39323932
}
39333933
}
39343934
},
3935+
"post": {
3936+
"description": "add tag",
3937+
"consumes": [
3938+
"application/json"
3939+
],
3940+
"produces": [
3941+
"application/json"
3942+
],
3943+
"tags": [
3944+
"Tag"
3945+
],
3946+
"summary": "add tag",
3947+
"parameters": [
3948+
{
3949+
"description": "tag",
3950+
"name": "data",
3951+
"in": "body",
3952+
"required": true,
3953+
"schema": {
3954+
"$ref": "#/definitions/schema.AddTagReq"
3955+
}
3956+
}
3957+
],
3958+
"responses": {
3959+
"200": {
3960+
"description": "OK",
3961+
"schema": {
3962+
"$ref": "#/definitions/handler.RespBody"
3963+
}
3964+
}
3965+
}
3966+
},
39353967
"delete": {
39363968
"description": "delete tag",
39373969
"consumes": [
@@ -5545,6 +5577,31 @@ const docTemplate = `{
55455577
}
55465578
}
55475579
},
5580+
"schema.AddTagReq": {
5581+
"type": "object",
5582+
"required": [
5583+
"display_name",
5584+
"original_text",
5585+
"slug_name"
5586+
],
5587+
"properties": {
5588+
"display_name": {
5589+
"description": "display_name",
5590+
"type": "string",
5591+
"maxLength": 35
5592+
},
5593+
"original_text": {
5594+
"description": "original text",
5595+
"type": "string",
5596+
"maxLength": 65536
5597+
},
5598+
"slug_name": {
5599+
"description": "slug_name",
5600+
"type": "string",
5601+
"maxLength": 35
5602+
}
5603+
}
5604+
},
55485605
"schema.AddUserReq": {
55495606
"type": "object",
55505607
"required": [
@@ -5778,6 +5835,10 @@ const docTemplate = `{
57785835
"title": {
57795836
"description": "title",
57805837
"type": "string"
5838+
},
5839+
"url_title": {
5840+
"description": "url title",
5841+
"type": "string"
57815842
}
57825843
}
57835844
},
@@ -5937,14 +5998,6 @@ const docTemplate = `{
59375998
"description": "user id",
59385999
"type": "string"
59396000
},
5940-
"ip_info": {
5941-
"description": "ip info",
5942-
"type": "string"
5943-
},
5944-
"is_admin": {
5945-
"description": "is admin",
5946-
"type": "boolean"
5947-
},
59486001
"last_login_date": {
59496002
"description": "last login date",
59506003
"type": "integer"
@@ -6033,6 +6086,10 @@ const docTemplate = `{
60336086
"title": {
60346087
"description": "title",
60356088
"type": "string"
6089+
},
6090+
"url_title": {
6091+
"description": "url title",
6092+
"type": "string"
60366093
}
60376094
}
60386095
},
@@ -6170,6 +6227,10 @@ const docTemplate = `{
61706227
"description": "created time",
61716228
"type": "integer"
61726229
},
6230+
"description": {
6231+
"description": "description",
6232+
"type": "string"
6233+
},
61736234
"display_name": {
61746235
"description": "display_name",
61756236
"type": "string"
@@ -6425,10 +6486,6 @@ const docTemplate = `{
64256486
"description": "ip info",
64266487
"type": "string"
64276488
},
6428-
"is_admin": {
6429-
"description": "is admin",
6430-
"type": "boolean"
6431-
},
64326489
"language": {
64336490
"description": "language",
64346491
"type": "string"
@@ -6461,6 +6518,10 @@ const docTemplate = `{
64616518
"description": "rank",
64626519
"type": "integer"
64636520
},
6521+
"role_id": {
6522+
"description": "role id",
6523+
"type": "integer"
6524+
},
64646525
"status": {
64656526
"description": "user status",
64666527
"type": "string"
@@ -6525,10 +6586,6 @@ const docTemplate = `{
65256586
"description": "ip info",
65266587
"type": "string"
65276588
},
6528-
"is_admin": {
6529-
"description": "is admin",
6530-
"type": "boolean"
6531-
},
65326589
"language": {
65336590
"description": "language",
65346591
"type": "string"
@@ -6561,6 +6618,10 @@ const docTemplate = `{
65616618
"description": "rank",
65626619
"type": "integer"
65636620
},
6621+
"role_id": {
6622+
"description": "role id",
6623+
"type": "integer"
6624+
},
65646625
"status": {
65656626
"description": "user status",
65666627
"type": "string"
@@ -6612,6 +6673,10 @@ const docTemplate = `{
66126673
"description": "title",
66136674
"type": "string"
66146675
},
6676+
"url_title": {
6677+
"description": "url title",
6678+
"type": "string"
6679+
},
66156680
"vote_type": {
66166681
"description": "vote type",
66176682
"type": "string"
@@ -7179,10 +7244,18 @@ const docTemplate = `{
71797244
"schema.SiteInterfaceReq": {
71807245
"type": "object",
71817246
"required": [
7247+
"default_avatar",
71827248
"language",
71837249
"time_zone"
71847250
],
71857251
"properties": {
7252+
"default_avatar": {
7253+
"type": "string",
7254+
"enum": [
7255+
"system",
7256+
"gravatar"
7257+
]
7258+
},
71867259
"language": {
71877260
"type": "string",
71887261
"maxLength": 128
@@ -7196,10 +7269,18 @@ const docTemplate = `{
71967269
"schema.SiteInterfaceResp": {
71977270
"type": "object",
71987271
"required": [
7272+
"default_avatar",
71997273
"language",
72007274
"time_zone"
72017275
],
72027276
"properties": {
7277+
"default_avatar": {
7278+
"type": "string",
7279+
"enum": [
7280+
"system",
7281+
"gravatar"
7282+
]
7283+
},
72037284
"language": {
72047285
"type": "string",
72057286
"maxLength": 128
@@ -7275,7 +7356,7 @@ const docTemplate = `{
72757356
"properties": {
72767357
"permalink": {
72777358
"type": "integer",
7278-
"maximum": 3,
7359+
"maximum": 4,
72797360
"minimum": 0
72807361
},
72817362
"robots": {
@@ -7292,7 +7373,7 @@ const docTemplate = `{
72927373
"properties": {
72937374
"permalink": {
72947375
"type": "integer",
7295-
"maximum": 3,
7376+
"maximum": 4,
72967377
"minimum": 0
72977378
},
72987379
"robots": {

0 commit comments

Comments
 (0)