web

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AvatarDir = "./web/static/avatar"

AvatarDir path

Functions

func CreateAnswer

func CreateAnswer(c *gin.Context)

CreateAnswer func

func CreateComment

func CreateComment(c *gin.Context)

CreateComment func

func CreateQuestion

func CreateQuestion(c *gin.Context)

CreateQuestion func

func CreateReply

func CreateReply(c *gin.Context)

CreateReply func

func CreateSupporter

func CreateSupporter(c *gin.Context)

CreateSupporter func

func DeleteSupporter

func DeleteSupporter(c *gin.Context)

DeleteSupporter func

func FileAvatarResolve

func FileAvatarResolve(c *gin.Context)

FileAvatarResolve func

func SecurityLogin

func SecurityLogin(c *gin.Context)

SecurityLogin func

func SecurityLogout

func SecurityLogout(c *gin.Context)

SecurityLogout func

func SecuritySign

func SecuritySign(c *gin.Context)

SecuritySign func

Types

type CreateAnswerInterface

type CreateAnswerInterface struct {
	Content    string `json:"content"`
	Type       int    `json:"type"`
	QuestionID int    `json:"questionID"`
}

CreateAnswerInterface struct

type CreateCommentInterface

type CreateCommentInterface struct {
	Content  string `json:"content"`
	Type     int    `json:"type"`
	AnswerID int    `json:"answerID"`
}

CreateCommentInterface interface

type CreateQuestionInterface

type CreateQuestionInterface struct {
	Title string `json:"title"`
	Type  int    `json:"type"`
	Desc  string `json:"desc"`
}

CreateQuestionInterface struct

type CreateReplyInterface

type CreateReplyInterface struct {
	Content          string `json:"content"`
	Type             int    `json:"type"`
	CommentID        int    `json:"commentID"`
	ReplyToProfileID int    `json:"replyToProfileID"`
}

CreateReplyInterface struct

type LoginInterface

type LoginInterface struct {
	Mail     string `json:"mail"`
	Password string `json:"password"`
}

LoginInterface struct

type SignInterface

type SignInterface struct {
	Name     string `json:"name"`
	Mail     string `json:"mail"`
	Password string `json:"password"`
}

SignInterface struct

Jump to

Keyboard shortcuts

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