question

package
v0.0.0-...-d0e669d Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUploadImageSizeTooLarge = errors.New("图片文件大小不能大于 5Mb")

Functions

func Delete

func Delete(ctx context.Context, pageUser *db.User, question *db.Question, canDelete bool)

func Item

func Item(ctx context.Context)

func List

func List(ctx context.Context)

func ListAPI

func ListAPI(ctx context.Context) error

func New

func New(ctx context.Context, f form.NewQuestion, pageUser *db.User, recaptcha recaptcha.RecaptchaV3)

func Pager

func Pager(ctx context.Context)

func PublishAnswer

func PublishAnswer(ctx context.Context, pageUser *db.User, question *db.Question, f form.PublishAnswerQuestion)

func Questioner

func Questioner(ctx context.Context, pageUser *db.User)

func SetPrivate

func SetPrivate(ctx context.Context, pageUser *db.User, question *db.Question, canDelete bool)

func SetPublic

func SetPublic(ctx context.Context, pageUser *db.User, question *db.Question, canDelete bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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