Documentation ¶
Index ¶
- func CreateAction(c *gin.Context)
- func IndexAction(c *gin.Context)
- func Routes(r *gin.RouterGroup)
- func ShowAction(c *gin.Context)
- func ToggleFavoriteAction(c *gin.Context)
- func ToggleLikeAction(c *gin.Context)
- func TogglePostAction(userId int64, action string, postId int64) (int64, error)
- type CreateParams
- type Post
- type PostResp
- type ShowParams
- type ToggleFavoriteParams
- type ToggleLikeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAction ¶
func IndexAction ¶
func Routes ¶
func Routes(r *gin.RouterGroup)
func ShowAction ¶
func ToggleFavoriteAction ¶
func ToggleLikeAction ¶
Types ¶
type CreateParams ¶
type Post ¶
type Post struct { Id int64 UserId int64 NodeId int64 Title string Content string Fee int CreatedAt time.Time UpdatedAt time.Time }
func CreatePost ¶
type PostResp ¶
type ShowParams ¶
type ShowParams struct {
Id int64 `form:"id"`
}
type ToggleFavoriteParams ¶
type ToggleFavoriteParams struct {
PostId int64 `form:"id"`
}
type ToggleLikeParams ¶
type ToggleLikeParams struct {
PostId int64 `form:"id"`
}
Click to show internal directories.
Click to hide internal directories.