Documentation ¶
Index ¶
- Variables
- func CreateAnswer(c *gin.Context)
- func CreateComment(c *gin.Context)
- func CreateQuestion(c *gin.Context)
- func CreateReply(c *gin.Context)
- func CreateSupporter(c *gin.Context)
- func DeleteSupporter(c *gin.Context)
- func FileAvatarResolve(c *gin.Context)
- func SecurityLogin(c *gin.Context)
- func SecurityLogout(c *gin.Context)
- func SecuritySign(c *gin.Context)
- type CreateAnswerInterface
- type CreateCommentInterface
- type CreateQuestionInterface
- type CreateReplyInterface
- type LoginInterface
- type SignInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var AvatarDir = "./web/static/avatar"
AvatarDir path
Functions ¶
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 ¶
LoginInterface struct
type SignInterface ¶
type SignInterface struct { Name string `json:"name"` Mail string `json:"mail"` Password string `json:"password"` }
SignInterface struct
Click to show internal directories.
Click to hide internal directories.