create compat-id for messages && TestCreateCompatUser
This commit is contained in:
@@ -160,7 +160,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.sendMessageInternal.response"
|
||||
"$ref": "#/definitions/handler.SendMessage.response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -245,6 +245,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Ack.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -330,6 +336,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Expand.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -401,6 +413,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Info.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -732,6 +750,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Register.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -780,6 +804,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Requery.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -880,6 +910,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Update.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -964,6 +1000,12 @@
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.Upgrade.response"
|
||||
}
|
||||
},
|
||||
"default": {
|
||||
"description": "",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/ginresp.compatAPIError"
|
||||
}
|
||||
@@ -2182,7 +2224,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.sendMessageInternal.response"
|
||||
"$ref": "#/definitions/handler.SendMessage.response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -2296,7 +2338,7 @@
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/handler.sendMessageInternal.response"
|
||||
"$ref": "#/definitions/handler.SendMessageCompat.response"
|
||||
}
|
||||
},
|
||||
"400": {
|
||||
@@ -2695,6 +2737,76 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handler.SendMessage.response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errhighlight": {
|
||||
"type": "integer"
|
||||
},
|
||||
"error": {
|
||||
"type": "integer"
|
||||
},
|
||||
"is_pro": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"messagecount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quota": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quota_max": {
|
||||
"type": "integer"
|
||||
},
|
||||
"scn_msg_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"suppress_send": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"handler.SendMessageCompat.response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errhighlight": {
|
||||
"type": "integer"
|
||||
},
|
||||
"error": {
|
||||
"type": "integer"
|
||||
},
|
||||
"is_pro": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"messagecount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quota": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quota_max": {
|
||||
"type": "integer"
|
||||
},
|
||||
"scn_msg_id": {
|
||||
"type": "integer"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"suppress_send": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"handler.Sleep.response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
@@ -2803,41 +2915,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"handler.sendMessageInternal.response": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"errhighlight": {
|
||||
"type": "integer"
|
||||
},
|
||||
"error": {
|
||||
"type": "integer"
|
||||
},
|
||||
"is_pro": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"message": {
|
||||
"type": "string"
|
||||
},
|
||||
"messagecount": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quota": {
|
||||
"type": "integer"
|
||||
},
|
||||
"quota_max": {
|
||||
"type": "integer"
|
||||
},
|
||||
"scn_msg_id": {
|
||||
"type": "string"
|
||||
},
|
||||
"success": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"suppress_send": {
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"models.ChannelWithSubscriptionJSON": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
@@ -243,6 +243,52 @@ definitions:
|
||||
example: P3TNH8mvv14fm
|
||||
type: string
|
||||
type: object
|
||||
handler.SendMessage.response:
|
||||
properties:
|
||||
errhighlight:
|
||||
type: integer
|
||||
error:
|
||||
type: integer
|
||||
is_pro:
|
||||
type: boolean
|
||||
message:
|
||||
type: string
|
||||
messagecount:
|
||||
type: integer
|
||||
quota:
|
||||
type: integer
|
||||
quota_max:
|
||||
type: integer
|
||||
scn_msg_id:
|
||||
type: string
|
||||
success:
|
||||
type: boolean
|
||||
suppress_send:
|
||||
type: boolean
|
||||
type: object
|
||||
handler.SendMessageCompat.response:
|
||||
properties:
|
||||
errhighlight:
|
||||
type: integer
|
||||
error:
|
||||
type: integer
|
||||
is_pro:
|
||||
type: boolean
|
||||
message:
|
||||
type: string
|
||||
messagecount:
|
||||
type: integer
|
||||
quota:
|
||||
type: integer
|
||||
quota_max:
|
||||
type: integer
|
||||
scn_msg_id:
|
||||
type: integer
|
||||
success:
|
||||
type: boolean
|
||||
suppress_send:
|
||||
type: boolean
|
||||
type: object
|
||||
handler.Sleep.response:
|
||||
properties:
|
||||
duration:
|
||||
@@ -313,29 +359,6 @@ definitions:
|
||||
uri:
|
||||
type: string
|
||||
type: object
|
||||
handler.sendMessageInternal.response:
|
||||
properties:
|
||||
errhighlight:
|
||||
type: integer
|
||||
error:
|
||||
type: integer
|
||||
is_pro:
|
||||
type: boolean
|
||||
message:
|
||||
type: string
|
||||
messagecount:
|
||||
type: integer
|
||||
quota:
|
||||
type: integer
|
||||
quota_max:
|
||||
type: integer
|
||||
scn_msg_id:
|
||||
type: string
|
||||
success:
|
||||
type: boolean
|
||||
suppress_send:
|
||||
type: boolean
|
||||
type: object
|
||||
models.ChannelWithSubscriptionJSON:
|
||||
properties:
|
||||
channel_id:
|
||||
@@ -618,7 +641,7 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.sendMessageInternal.response'
|
||||
$ref: '#/definitions/handler.SendMessage.response'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
@@ -677,6 +700,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Ack.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Acknowledge that a message was received
|
||||
@@ -735,6 +762,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Expand.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Get a whole (potentially truncated) message
|
||||
@@ -783,6 +814,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Info.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Get information about the current user
|
||||
@@ -1011,6 +1046,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Register.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Register a new account
|
||||
@@ -1044,6 +1083,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Requery.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Return all not-acknowledged messages
|
||||
@@ -1112,6 +1155,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Update.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Set the fcm-token (android)
|
||||
@@ -1171,6 +1218,10 @@ paths:
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.Upgrade.response'
|
||||
default:
|
||||
description: ""
|
||||
schema:
|
||||
$ref: '#/definitions/ginresp.compatAPIError'
|
||||
summary: Upgrade a free account to a paid account
|
||||
@@ -2002,7 +2053,7 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.sendMessageInternal.response'
|
||||
$ref: '#/definitions/handler.SendMessage.response'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
@@ -2075,7 +2126,7 @@ paths:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
$ref: '#/definitions/handler.sendMessageInternal.response'
|
||||
$ref: '#/definitions/handler.SendMessageCompat.response'
|
||||
"400":
|
||||
description: Bad Request
|
||||
schema:
|
||||
|
Reference in New Issue
Block a user