service

package
v0.0.0-...-79b3612 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivateService

type ActivateService struct {
	UserName string `form:"username" json:"username" binding:"required,min=3,max=15" example:"Anonymous"`
	Code     string `form:"code" json:"code" binding:"required,min=8,max=40" example:"Anonymous"`
}

func (*ActivateService) Activate

func (as *ActivateService) Activate() serializer.Response

type BladeService

type BladeService struct {
	Address  string `form:"address" json:"address" binding:"required" example:"Anonymous"`
	Username string `form:"username" json:"username" binding:"required" example:"Anonymous"`
	Password string `form:"password" json:"password" binding:"required" example:"Anonymous"`
	Country  string `form:"country" json:"country" binding:"-" example:"Anonymous"`
	Traffic  int    `form:"traffic" json:"traffic" binding:"required" example:"Anonymous"`
	Vendor   string `form:"vendor" json:"vendor" binding:"-" example:"Anonymous"`
	Center   center `form:"center" json:"center" binding:"-" example:"Anonymous"`
	Local    local  `form:"local" json:"local" binding:"-" example:"Anonymous"`
}

func (*BladeService) Register

func (b *BladeService) Register() serializer.Response

type CreateActivationService

type CreateActivationService struct {
	Duration int `form:"duration" json:"duration" binding:"required" example:"Anonymous"`
	Flux     int `form:"flux" json:"flux" binding:"required" example:"Anonymous"`
}

func (*CreateActivationService) GenerateActivation

func (cas *CreateActivationService) GenerateActivation() serializer.Response

type SessionService

type SessionService struct {
	UserName string `form:"username" json:"username" binding:"required" example:"Anonymous"`
	Country  string `form:"country" json:"country" binding:"required" example:"Anonymous"`
}

func (*SessionService) SessionDeletion

func (s *SessionService) SessionDeletion() serializer.Response

func (*SessionService) SessionEstablish

func (s *SessionService) SessionEstablish() serializer.Response

type UserService

type UserService struct {
	UserName string `form:"username" json:"username" binding:"required,min=3,max=15" example:"Anonymous"`
	Password string `form:"password" json:"password" binding:"required,min=8,max=40" example:"Anonymous"`
	Email    string `form:"email" json:"email" binding:"-" example:"Anonymous"`
}

func (*UserService) Login

func (service *UserService) Login() serializer.Response

func (*UserService) Register

func (service *UserService) Register() serializer.Response

Jump to

Keyboard shortcuts

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