Documentation ¶
Index ¶
- Variables
- func Delete(ctx context.Context, pageUser *db.User, question *db.Question, canDelete bool)
- func Item(ctx context.Context)
- func List(ctx context.Context)
- func ListAPI(ctx context.Context) error
- func New(ctx context.Context, f form.NewQuestion, pageUser *db.User, ...)
- func Pager(ctx context.Context)
- func PublishAnswer(ctx context.Context, pageUser *db.User, question *db.Question, ...)
- func Questioner(ctx context.Context, pageUser *db.User)
- func SetPrivate(ctx context.Context, pageUser *db.User, question *db.Question, canDelete bool)
- func SetPublic(ctx context.Context, pageUser *db.User, question *db.Question, canDelete bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUploadImageSizeTooLarge = errors.New("图片文件大小不能大于 5Mb")
Functions ¶
func New ¶
func New(ctx context.Context, f form.NewQuestion, pageUser *db.User, recaptcha recaptcha.RecaptchaV3)
func PublishAnswer ¶
func SetPrivate ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.