Documentation ¶
Index ¶
- func NewAccountsApiImplService(md *mongo.Client, jwtSecret string) gen.AccountsApiServicer
- func NewMutesApiImplService(md *mongo.Client) gen.MutesApiServicer
- func NewMylistApiImplService() gen.MylistApiServicer
- type AccountsApiImplService
- func (s *AccountsApiImplService) CreateAccount(ctx context.Context, accountStruct gen.AccountStruct) (gen.ImplResponse, error)
- func (s *AccountsApiImplService) DeleteAccount(ctx context.Context, accountID int32, password string) (gen.ImplResponse, error)
- func (s *AccountsApiImplService) EditAccount(ctx context.Context, accountID int32, accountChange gen.AccountStruct) (gen.ImplResponse, error)
- func (s *AccountsApiImplService) GetAccount(ctx context.Context, accountID int32) (gen.ImplResponse, error)
- func (s *AccountsApiImplService) GetAccountMe(ctx context.Context) (gen.ImplResponse, error)
- func (s *AccountsApiImplService) GetUploadHistory(ctx context.Context, accountID int32, page int32, sort string, order string, ...) (gen.ImplResponse, error)
- func (s *AccountsApiImplService) LoginWithForm(ctx context.Context, req gen.PostLoginWithFormRequest) (gen.ImplResponse, error)
- type MutesApiImplService
- func (s *MutesApiImplService) AddMute(ctx context.Context, accountID int32, muteStruct gen.MuteStruct) (gen.ImplResponse, error)
- func (s *MutesApiImplService) DeleteMute(ctx context.Context, accountID int32, muteID int32) (gen.ImplResponse, error)
- func (s *MutesApiImplService) GetMute(ctx context.Context, accountID int32, muteID int32) (gen.ImplResponse, error)
- func (s *MutesApiImplService) GetMutes(ctx context.Context, accountID int32) (gen.ImplResponse, error)
- type MylistApiImplService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAccountsApiImplService ¶
func NewAccountsApiImplService(md *mongo.Client, jwtSecret string) gen.AccountsApiServicer
NewAccountsApiImplService creates accounts api service
func NewMutesApiImplService ¶
func NewMutesApiImplService(md *mongo.Client) gen.MutesApiServicer
NewMutesApiImplService creates mutes api service
func NewMylistApiImplService ¶
func NewMylistApiImplService() gen.MylistApiServicer
NewMylistApiImplService creates mylist api service
Types ¶
type AccountsApiImplService ¶
type AccountsApiImplService struct { gen.AccountsApiService // contains filtered or unexported fields }
AccountsApiImplService is type of implemented api service (http.Handler)
func (*AccountsApiImplService) CreateAccount ¶
func (s *AccountsApiImplService) CreateAccount(ctx context.Context, accountStruct gen.AccountStruct) (gen.ImplResponse, error)
CreateAccount - Create account
func (*AccountsApiImplService) DeleteAccount ¶
func (s *AccountsApiImplService) DeleteAccount(ctx context.Context, accountID int32, password string) (gen.ImplResponse, error)
DeleteAccount - Delete account info
func (*AccountsApiImplService) EditAccount ¶
func (s *AccountsApiImplService) EditAccount(ctx context.Context, accountID int32, accountChange gen.AccountStruct) (gen.ImplResponse, error)
EditAccount - Edit account info
func (*AccountsApiImplService) GetAccount ¶
func (s *AccountsApiImplService) GetAccount(ctx context.Context, accountID int32) (gen.ImplResponse, error)
GetAccount - Get account info
func (*AccountsApiImplService) GetAccountMe ¶
func (s *AccountsApiImplService) GetAccountMe(ctx context.Context) (gen.ImplResponse, error)
GetAccountMe - Get user info (self)
func (*AccountsApiImplService) GetUploadHistory ¶
func (s *AccountsApiImplService) GetUploadHistory(ctx context.Context, accountID int32, page int32, sort string, order string, perPage int32) (gen.ImplResponse, error)
GetUploadHistory - Get upload history
func (*AccountsApiImplService) LoginWithForm ¶
func (s *AccountsApiImplService) LoginWithForm(ctx context.Context, req gen.PostLoginWithFormRequest) (gen.ImplResponse, error)
LoginWithForm - Login with form
type MutesApiImplService ¶
type MutesApiImplService struct { gen.MutesApiService // contains filtered or unexported fields }
MutesApiImplService is type of implemented api service (http.Handler)
func (*MutesApiImplService) AddMute ¶
func (s *MutesApiImplService) AddMute(ctx context.Context, accountID int32, muteStruct gen.MuteStruct) (gen.ImplResponse, error)
AddMute - Add mute
func (*MutesApiImplService) DeleteMute ¶
func (s *MutesApiImplService) DeleteMute(ctx context.Context, accountID int32, muteID int32) (gen.ImplResponse, error)
DeleteMute - Delete mute
func (*MutesApiImplService) GetMute ¶
func (s *MutesApiImplService) GetMute(ctx context.Context, accountID int32, muteID int32) (gen.ImplResponse, error)
GetMute - Get mute
func (*MutesApiImplService) GetMutes ¶
func (s *MutesApiImplService) GetMutes(ctx context.Context, accountID int32) (gen.ImplResponse, error)
GetMutes - Get mute list
type MylistApiImplService ¶
type MylistApiImplService struct { gen.MylistApiService // contains filtered or unexported fields }
MylistApiImplService is type of implemented api service (http.Handler)
func (*MylistApiImplService) CreateMylist ¶
func (s *MylistApiImplService) CreateMylist(ctx context.Context, accountID int32, mylistStruct gen.MylistStruct) (gen.ImplResponse, error)
CreateMylist - Create user mylist
func (*MylistApiImplService) GetUserMylists ¶
func (s *MylistApiImplService) GetUserMylists(ctx context.Context, accountID int32) (gen.ImplResponse, error)
GetUserMylists - Get user mylists