Documentation ¶
Index ¶
- func DeletePost(r tx.Request) (interface{}, error)
- func GetPost(r tx.Request) (interface{}, error)
- func ListPosts(r tx.Request) (interface{}, error)
- func Mount(m tx.Middlewarer) http.Handler
- func SetPostPermission(r tx.Request) (interface{}, error)
- func TagPost(r tx.Request) (interface{}, error)
- func UntagPost(r tx.Request) (interface{}, error)
- func UploadPost(r tx.Request) (interface{}, error)
- type ListParams
- type PostPermission
- type Tag
- type UploadParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeletePost ¶
func SetPostPermission ¶
SetPostPermission: /{id}?p=0
func UploadPost ¶
Types ¶
type ListParams ¶
ListParams is the URL parameter for post listing pagination.
type PostPermission ¶
type PostPermission struct {
Permission smolboard.Permission `schema:"p,required"`
}
type UploadParams ¶
type UploadParams struct {
Permission smolboard.Permission `schema:"p"` // default Normal
}
Click to show internal directories.
Click to hide internal directories.