222 lines
4.4 KiB
Go
222 lines
4.4 KiB
Go
// Package classification justlog API
|
|
//
|
|
// https://github.com/gempir/justlog
|
|
//
|
|
// Schemes: https
|
|
// BasePath: /
|
|
//
|
|
// Consumes:
|
|
// - application/json
|
|
// - application/xml
|
|
//
|
|
// Produces:
|
|
// - application/json
|
|
// - text/plain
|
|
//
|
|
// SecurityDefinitions:
|
|
// api_key:
|
|
// type: apiKey
|
|
// name: X-Api-Key
|
|
// in: header
|
|
//
|
|
// swagger:meta
|
|
package api
|
|
|
|
type LogParams struct {
|
|
// in: query
|
|
Json string `json:"json"`
|
|
// in: query
|
|
Reverse string `json:"reverse"`
|
|
// in: query
|
|
From int32 `json:"from"`
|
|
// in: query
|
|
To int32 `json:"to"`
|
|
}
|
|
|
|
//swagger:parameters channelUserLogsRandom
|
|
type ChannelUserLogsRandomParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
Username string `json:"username"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelUserLogs
|
|
type ChannelUserLogsParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
Username string `json:"username"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelUserLogsYearMonth
|
|
type ChannelUserLogsYearMonthParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
Username string `json:"username"`
|
|
// in: path
|
|
Year string `json:"year"`
|
|
// in: path
|
|
Month string `json:"month"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelLogs
|
|
type ChannelLogsParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelLogsYearMonthDay
|
|
type ChannelLogsYearMonthDayParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
Year string `json:"year"`
|
|
// in: path
|
|
Month string `json:"month"`
|
|
// in: path
|
|
Day string `json:"day"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdUserIdLogsRandom
|
|
type ChannelIdUserIdLogsRandomParams struct {
|
|
// in: path
|
|
ChannelId string `json:"channelid"`
|
|
// in: path
|
|
UserId string `json:"userid"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdUserIdLogs
|
|
type ChannelIdUserIdLogsParams struct {
|
|
// in: path
|
|
ChannelId string `json:"channelid"`
|
|
// in: path
|
|
UserId string `json:"userid"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdUserIdLogsYearMonth
|
|
type ChannelIdUserIdLogsYearMonthParams struct {
|
|
// in: path
|
|
ChannelId string `json:"channelid"`
|
|
// in: path
|
|
UserId string `json:"userid"`
|
|
// in: path
|
|
Year string `json:"year"`
|
|
// in: path
|
|
Month string `json:"month"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdLogs
|
|
type ChannelIdLogsParams struct {
|
|
// in: path
|
|
Channel string `json:"channelid"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdLogsYearMonthDay
|
|
type ChannelIdLogsYearMonthDayParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
Year string `json:"year"`
|
|
// in: path
|
|
Month string `json:"month"`
|
|
// in: path
|
|
Day string `json:"day"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdUserLogsRandom
|
|
type ChannelIdUserLogsRandomParams struct {
|
|
// in: path
|
|
ChannelId string `json:"channelid"`
|
|
// in: path
|
|
Username string `json:"username"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdUserLogs
|
|
type ChannelIdUserLogsParams struct {
|
|
// in: path
|
|
ChannelId string `json:"channelid"`
|
|
// in: path
|
|
Username string `json:"username"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelIdUserLogsYearMonth
|
|
type ChannelIdUserLogsYearMonthParams struct {
|
|
// in: path
|
|
ChannelId string `json:"channelid"`
|
|
// in: path
|
|
Username string `json:"username"`
|
|
// in: path
|
|
Year string `json:"year"`
|
|
// in: path
|
|
Month string `json:"month"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelUserIdLogsRandom
|
|
type ChannelUserIdLogsRandomParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
UserId string `json:"userid"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelUserIdLogs
|
|
type ChannelUserIdLogsParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
UserId string `json:"userid"`
|
|
LogParams
|
|
}
|
|
|
|
//swagger:parameters channelUserIdLogsYearMonth
|
|
type ChannelUserIdLogsYearMonthParams struct {
|
|
// in: path
|
|
Channel string `json:"channel"`
|
|
// in: path
|
|
Userid string `json:"userid"`
|
|
// in: path
|
|
Year string `json:"year"`
|
|
// in: path
|
|
Month string `json:"month"`
|
|
LogParams
|
|
}
|
|
|
|
// swagger:parameters addChannels
|
|
type AddChannelsParameters struct {
|
|
// in:body
|
|
Body channelConfigsJoinRequest
|
|
}
|
|
|
|
// swagger:parameters deleteChannels
|
|
type DeleteChannelsParameters struct {
|
|
// in:body
|
|
Body channelsDeleteRequest
|
|
}
|
|
|
|
//swagger:parameters list
|
|
type ListLogsParams struct {
|
|
// in: query
|
|
Channel string `json:"channel"`
|
|
// in: query
|
|
Username string `json:"username"`
|
|
// in: query
|
|
ChannelId string `json:"channelid"`
|
|
// in: query
|
|
Userid string `json:"userid"`
|
|
}
|