package
Version:
v0.0.0-...-4e78a55
Opens a new window with list of versions in this module.
Published: Dec 1, 2023
License: MIT
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type LoginUserInput struct {
UserName string `json:"username"`
Password string `json:"password"`
}
type NewAnswerInput struct {
Content string `json:"content"`
Author int `json:"author"`
Question int `json:"question"`
}
type NewQuestionInput struct {
Title string `json:"title"`
Content string `json:"content"`
Author int `json:"author"`
Tags []int `json:"tags"`
}
type NewTagInput struct {
Name string `json:"name"`
}
type NewUserInput struct {
UserName string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
}
type UpdateAnswerInput struct {
Content string `json:"content"`
Author int `json:"author"`
Question int `json:"question"`
}
type UpdateQuestionInput struct {
Title string `json:"title"`
Content string `json:"content"`
Author int `json:"author"`
Tags []int `json:"tags"`
}
type UpdateTagInput struct {
Name string `json:"name"`
}
type UpdateUserInput struct {
UserName string `json:"username"`
Email string `json:"email"`
Password string `json:"password"`
Superuser bool `json:"superuser"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.