mirror of
https://github.com/gotify/server.git
synced 2026-05-07 05:48:41 +08:00
Use int64 as input
This commit is contained in:
@@ -125,6 +125,7 @@ func (a *ApplicationAPI) GetApplications(ctx *gin.Context) {
|
||||
// description: the application id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
@@ -189,6 +190,7 @@ func (a *ApplicationAPI) DeleteApplication(ctx *gin.Context) {
|
||||
// description: the application id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -255,6 +257,7 @@ func (a *ApplicationAPI) UpdateApplication(ctx *gin.Context) {
|
||||
// description: the application id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
|
||||
@@ -46,6 +46,7 @@ type ClientAPI struct {
|
||||
// description: the client id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -181,6 +182,7 @@ func (a *ClientAPI) GetClients(ctx *gin.Context) {
|
||||
// description: the client id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
|
||||
@@ -68,6 +68,7 @@ type pagingParams struct {
|
||||
// minimum: 0
|
||||
// required: false
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -139,6 +140,7 @@ func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) {
|
||||
// description: the application id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// - name: limit
|
||||
// in: query
|
||||
// description: the maximal amount of messages to return
|
||||
@@ -153,6 +155,7 @@ func withPaging(ctx *gin.Context, f func(pagingParams *pagingParams)) {
|
||||
// minimum: 0
|
||||
// required: false
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -233,6 +236,7 @@ func (a *MessageAPI) DeleteMessages(ctx *gin.Context) {
|
||||
// description: the application id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -280,6 +284,7 @@ func (a *MessageAPI) DeleteMessageWithApplication(ctx *gin.Context) {
|
||||
// description: the message id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
|
||||
@@ -101,6 +101,7 @@ func (c *PluginAPI) GetPlugins(ctx *gin.Context) {
|
||||
// description: the plugin id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
@@ -158,6 +159,7 @@ func (c *PluginAPI) EnablePlugin(ctx *gin.Context) {
|
||||
// description: the plugin id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
@@ -215,6 +217,7 @@ func (c *PluginAPI) DisablePlugin(ctx *gin.Context) {
|
||||
// description: the plugin id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
@@ -270,6 +273,7 @@ func (c *PluginAPI) GetDisplay(ctx *gin.Context) {
|
||||
// description: the plugin id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
@@ -336,6 +340,7 @@ func (c *PluginAPI) GetConfig(ctx *gin.Context) {
|
||||
// description: the plugin id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// security: [clientTokenHeader: [], clientTokenQuery: [], basicAuth: []]
|
||||
// responses:
|
||||
// 200:
|
||||
|
||||
@@ -197,6 +197,7 @@ func (a *UserAPI) CreateUser(ctx *gin.Context) {
|
||||
// description: the user id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -246,6 +247,7 @@ func (a *UserAPI) GetUserByID(ctx *gin.Context) {
|
||||
// description: the user id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// responses:
|
||||
// 200:
|
||||
// description: Ok
|
||||
@@ -349,6 +351,7 @@ func (a *UserAPI) ChangePassword(ctx *gin.Context) {
|
||||
// description: the user id
|
||||
// required: true
|
||||
// type: integer
|
||||
// format: int64
|
||||
// - name: body
|
||||
// in: body
|
||||
// description: the updated user
|
||||
|
||||
@@ -167,6 +167,7 @@
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the application id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -232,6 +233,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the application id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -303,6 +305,7 @@
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the application id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -373,6 +376,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the application id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -390,6 +394,7 @@
|
||||
{
|
||||
"minimum": 0,
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "return all messages with an ID less than this value",
|
||||
"name": "since",
|
||||
"in": "query"
|
||||
@@ -451,6 +456,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the application id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -634,6 +640,7 @@
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the client id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -699,6 +706,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the client id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -899,6 +907,7 @@
|
||||
{
|
||||
"minimum": 0,
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "return all messages with an ID less than this value",
|
||||
"name": "since",
|
||||
"in": "query"
|
||||
@@ -1053,6 +1062,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the message id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1178,6 +1188,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the plugin id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1250,6 +1261,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the plugin id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1320,6 +1332,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the plugin id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1384,6 +1397,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the plugin id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1451,6 +1465,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the plugin id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1677,6 +1692,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the user id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1742,6 +1758,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the user id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
@@ -1813,6 +1830,7 @@
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "the user id",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
|
||||
Reference in New Issue
Block a user