model

package
v0.0.0-...-4e78a55 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginUserInput

type LoginUserInput struct {
	UserName string `json:"username"`
	Password string `json:"password"`
}

type NewAnswerInput

type NewAnswerInput struct {
	Content  string `json:"content"`
	Author   int    `json:"author"`
	Question int    `json:"question"`
}

type NewQuestionInput

type NewQuestionInput struct {
	Title   string `json:"title"`
	Content string `json:"content"`
	Author  int    `json:"author"`
	Tags    []int  `json:"tags"`
}

type NewTagInput

type NewTagInput struct {
	Name string `json:"name"`
}

type NewUserInput

type NewUserInput struct {
	UserName string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

type UpdateAnswerInput

type UpdateAnswerInput struct {
	Content  string `json:"content"`
	Author   int    `json:"author"`
	Question int    `json:"question"`
}

type UpdateQuestionInput

type UpdateQuestionInput struct {
	Title   string `json:"title"`
	Content string `json:"content"`
	Author  int    `json:"author"`
	Tags    []int  `json:"tags"`
}

type UpdateTagInput

type UpdateTagInput struct {
	Name string `json:"name"`
}

type UpdateUserInput

type UpdateUserInput struct {
	UserName  string `json:"username"`
	Email     string `json:"email"`
	Password  string `json:"password"`
	Superuser bool   `json:"superuser"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL