fix: resolve tagliatelle lint issues
This commit is contained in:
@@ -9,16 +9,16 @@ type SessionRequest struct {
|
|||||||
|
|
||||||
// SessionResponse is the response from POST /api/v1/session.
|
// SessionResponse is the response from POST /api/v1/session.
|
||||||
type SessionResponse struct {
|
type SessionResponse struct {
|
||||||
SessionID string `json:"session_id"`
|
SessionID string `json:"sessionId"`
|
||||||
ClientID string `json:"client_id"`
|
ClientID string `json:"clientId"`
|
||||||
Nick string `json:"nick"`
|
Nick string `json:"nick"`
|
||||||
Token string `json:"token"`
|
Token string `json:"token"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// StateResponse is the response from GET /api/v1/state.
|
// StateResponse is the response from GET /api/v1/state.
|
||||||
type StateResponse struct {
|
type StateResponse struct {
|
||||||
SessionID string `json:"session_id"`
|
SessionID string `json:"sessionId"`
|
||||||
ClientID string `json:"client_id"`
|
ClientID string `json:"clientId"`
|
||||||
Nick string `json:"nick"`
|
Nick string `json:"nick"`
|
||||||
Channels []string `json:"channels"`
|
Channels []string `json:"channels"`
|
||||||
}
|
}
|
||||||
@@ -59,7 +59,7 @@ type Channel struct {
|
|||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Topic string `json:"topic"`
|
Topic string `json:"topic"`
|
||||||
Members int `json:"members"`
|
Members int `json:"members"`
|
||||||
CreatedAt string `json:"created_at"`
|
CreatedAt string `json:"createdAt"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// ServerInfo is the response from GET /api/v1/server.
|
// ServerInfo is the response from GET /api/v1/server.
|
||||||
|
|||||||
Reference in New Issue
Block a user