controller

package
v0.0.0-...-d00b715 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommentController

type CommentController struct {
	domain.CommentUsecase
	domain.UserUsecase
	domain.InteractionUseCase
}

func (*CommentController) Create

func (col *CommentController) Create(c *gin.Context)

func (*CommentController) Delete

func (col *CommentController) Delete(c *gin.Context)

func (*CommentController) FindTop

func (col *CommentController) FindTop(c *gin.Context)

type FeedController

type FeedController struct {
	domain.FeedUsecase
}

func (*FeedController) Feed

func (f *FeedController) Feed(c *gin.Context)

type FileController

type FileController struct {
	FileUsecase domain.FileUsecase
}

func (*FileController) FileList

func (col *FileController) FileList(c *gin.Context)

func (*FileController) Upload

func (col *FileController) Upload(c *gin.Context)

func (*FileController) Uploads

func (col *FileController) Uploads(c *gin.Context)

type IntrController

func (*IntrController) Collect

func (col *IntrController) Collect(c *gin.Context)

func (*IntrController) Like

func (col *IntrController) Like(c *gin.Context)

type PostController

func (*PostController) Collect

func (col *PostController) Collect(c *gin.Context)

Collect 废弃方法 转移到 interaction 里

func (*PostController) CreateOrPublish

func (col *PostController) CreateOrPublish(c *gin.Context)

func (*PostController) Info

func (col *PostController) Info(c *gin.Context)

func (*PostController) Like

func (col *PostController) Like(c *gin.Context)

Like 废弃方法 转移到 interaction 里

func (*PostController) PostDelete

func (col *PostController) PostDelete(c *gin.Context)

func (*PostController) Rank

func (col *PostController) Rank(c *gin.Context)

func (*PostController) ReaderList

func (col *PostController) ReaderList(c *gin.Context)

func (*PostController) Search

func (col *PostController) Search(c *gin.Context)

func (*PostController) WriterList

func (col *PostController) WriterList(c *gin.Context)

type RankController

type RankController struct {
	// contains filtered or unexported fields
}

func (*RankController) GetTopN

func (col *RankController) GetTopN(c *gin.Context)

type RefreshTokenController

type RefreshTokenController struct {
	RefreshTokenUsecase domain.RefreshTokenUsecase
	UserUsecase         domain.UserUsecase
	Env                 *bootstrap.Env
}

func (*RefreshTokenController) RefreshToken

func (col *RefreshTokenController) RefreshToken(c *gin.Context)

type RelationController

type RelationController struct {
	domain.RelationUsecase
	domain.FeedUsecase
}

func (*RelationController) CancelFollow

func (col *RelationController) CancelFollow(c *gin.Context)

func (*RelationController) Follow

func (col *RelationController) Follow(c *gin.Context)

func (*RelationController) FolloweeList

func (col *RelationController) FolloweeList(c *gin.Context)

func (*RelationController) FollowerList

func (col *RelationController) FollowerList(c *gin.Context)

func (*RelationController) Stat

func (col *RelationController) Stat(c *gin.Context)

type TagController

type TagController struct {
	TagUsecase domain.TagUsecase
}

func (*TagController) CreateTag

func (col *TagController) CreateTag(c *gin.Context)

func (*TagController) CreateTagBiz

func (col *TagController) CreateTagBiz(c *gin.Context)

func (*TagController) GetTagsByBiz

func (col *TagController) GetTagsByBiz(c *gin.Context)

func (*TagController) GetTagsByUserID

func (col *TagController) GetTagsByUserID(c *gin.Context)

type TaskController

type TaskController struct {
	TaskUsecase domain.TaskUsecase
}

func (*TaskController) Create

func (col *TaskController) Create(c *gin.Context)

func (*TaskController) Delete

func (col *TaskController) Delete(c *gin.Context)

type UserController

func (*UserController) Avatar

func (col *UserController) Avatar(c *gin.Context)

func (*UserController) BatchProfile

func (col *UserController) BatchProfile(c *gin.Context)

func (*UserController) Fetch

func (col *UserController) Fetch(c *gin.Context)

func (*UserController) Login

func (col *UserController) Login(c *gin.Context)

func (*UserController) LoginByPhone

func (col *UserController) LoginByPhone(c *gin.Context)

func (*UserController) LoginBySms

func (col *UserController) LoginBySms(c *gin.Context)

func (*UserController) Logout

func (col *UserController) Logout(c *gin.Context)

func (*UserController) Profile

func (col *UserController) Profile(c *gin.Context)

func (*UserController) ResetPassword

func (col *UserController) ResetPassword(c *gin.Context)

func (*UserController) Search

func (col *UserController) Search(c *gin.Context)

func (*UserController) SendSMSCode

func (col *UserController) SendSMSCode(c *gin.Context)

func (*UserController) Signup

func (col *UserController) Signup(c *gin.Context)

func (*UserController) Update

func (col *UserController) Update(c *gin.Context)

Jump to

Keyboard shortcuts

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