account

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountHandler

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

func NewAccountHandler

func NewAccountHandler(account account.AccountContract, helper handler.Helper, router *echo.Echo, token token.Maker) *AccountHandler

func (*AccountHandler) AcceptFollower

func (a *AccountHandler) AcceptFollower(c echo.Context) error

func (*AccountHandler) DeleteQueue

func (a *AccountHandler) DeleteQueue(c echo.Context) error

func (*AccountHandler) FollowAccount

func (a *AccountHandler) FollowAccount(c echo.Context) error

func (*AccountHandler) GetAccount

func (a *AccountHandler) GetAccount(c echo.Context) error

func (*AccountHandler) GetAllQueue

func (a *AccountHandler) GetAllQueue(c echo.Context) error

func (*AccountHandler) ListAccount

func (a *AccountHandler) ListAccount(c echo.Context) error

func (*AccountHandler) Router

func (a *AccountHandler) Router(e *echo.Group)

func (*AccountHandler) UnfollowAccount

func (a *AccountHandler) UnfollowAccount(c echo.Context) error

func (*AccountHandler) UpdateAccountStatus

func (a *AccountHandler) UpdateAccountStatus(c echo.Context) error

type GetAccountParams

type GetAccountParams struct {
	ToAccountID int64 `json:"to_account_id" form:"to_account_id" query:"to_account_id" validate:"required,min=1"`
}

type GetAccountsParams

type GetAccountsParams struct {
	Limit       int32 `json:"limit" form:"limit" query:"limit" validate:"required,min=1,max=50"`
	Page        int32 `json:"page" form:"page" query:"page" validate:"required,min=0"`
	ToAccountID int64 `uri:"id" query:"to_account_id" validate:"required,min=1"`
}

Jump to

Keyboard shortcuts

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