resthandler

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2023 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 ActionRestHandler

type ActionRestHandler interface {
	CreateAction(c *gin.Context)
	DeleteAction(c *gin.Context)
	UpdateAction(c *gin.Context)
	GetAction(c *gin.Context)
	FindActions(c *gin.Context)
	PreviewAction(c *gin.Context)
	RunAction(c *gin.Context)
}

type ActionRestHandlerImpl

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

func NewActionRestHandlerImpl

func NewActionRestHandlerImpl(logger *zap.SugaredLogger, actionService action.ActionService) *ActionRestHandlerImpl

func (ActionRestHandlerImpl) CreateAction

func (impl ActionRestHandlerImpl) CreateAction(c *gin.Context)

func (ActionRestHandlerImpl) DeleteAction

func (impl ActionRestHandlerImpl) DeleteAction(c *gin.Context)

func (ActionRestHandlerImpl) FindActions

func (impl ActionRestHandlerImpl) FindActions(c *gin.Context)

func (ActionRestHandlerImpl) GetAction

func (impl ActionRestHandlerImpl) GetAction(c *gin.Context)

func (ActionRestHandlerImpl) PreviewAction

func (impl ActionRestHandlerImpl) PreviewAction(c *gin.Context)

func (ActionRestHandlerImpl) RunAction

func (impl ActionRestHandlerImpl) RunAction(c *gin.Context)

func (ActionRestHandlerImpl) UpdateAction

func (impl ActionRestHandlerImpl) UpdateAction(c *gin.Context)

type AppRequest

type AppRequest struct {
	Name       string        `json:"appName" validate:"required"`
	InitScheme []interface{} `json:"initScheme"`
}

type AppRestHandler

type AppRestHandler interface {
	CreateApp(c *gin.Context)
	DeleteApp(c *gin.Context)
	RenameApp(c *gin.Context)
	GetAllApps(c *gin.Context)
	GetMegaData(c *gin.Context)
	DuplicateApp(c *gin.Context)
	ReleaseApp(c *gin.Context)
}

type AppRestHandlerImpl

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

func NewAppRestHandlerImpl

func NewAppRestHandlerImpl(logger *zap.SugaredLogger, appService app.AppService, treeStateService state.TreeStateService) *AppRestHandlerImpl

func (AppRestHandlerImpl) CreateApp

func (impl AppRestHandlerImpl) CreateApp(c *gin.Context)

func (AppRestHandlerImpl) DeleteApp

func (impl AppRestHandlerImpl) DeleteApp(c *gin.Context)

func (AppRestHandlerImpl) DuplicateApp

func (impl AppRestHandlerImpl) DuplicateApp(c *gin.Context)

func (AppRestHandlerImpl) GetAllApps

func (impl AppRestHandlerImpl) GetAllApps(c *gin.Context)

func (AppRestHandlerImpl) GetMegaData

func (impl AppRestHandlerImpl) GetMegaData(c *gin.Context)

func (AppRestHandlerImpl) ReleaseApp

func (impl AppRestHandlerImpl) ReleaseApp(c *gin.Context)

func (AppRestHandlerImpl) RenameApp

func (impl AppRestHandlerImpl) RenameApp(c *gin.Context)

type ChangePasswordRequest

type ChangePasswordRequest struct {
	CurrentPassword string `json:"currentPassword" validate:"required"`
	NewPassword     string `json:"newPassword" validate:"required"`
}

type ForgetPasswordRequest

type ForgetPasswordRequest struct {
	Email             string `json:"email" validate:"required"`
	NewPassword       string `json:"newPassword" validate:"required"`
	VerificationCode  string `json:"verificationCode" validate:"required"`
	VerificationToken string `json:"verificationToken" validate:"required"`
}

type Language

type Language struct {
	Language string `json:"language" validate:"required"`
}

type ResourceRestHandler

type ResourceRestHandler interface {
	FindAllResources(c *gin.Context)
	CreateResource(c *gin.Context)
	GetResource(c *gin.Context)
	UpdateResource(c *gin.Context)
	DeleteResource(c *gin.Context)
	TestConnection(c *gin.Context)
	GetMetaInfo(c *gin.Context)
}

type ResourceRestHandlerImpl

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

func NewResourceRestHandlerImpl

func NewResourceRestHandlerImpl(logger *zap.SugaredLogger, resourceService resource.ResourceService) *ResourceRestHandlerImpl

func (ResourceRestHandlerImpl) CreateResource

func (impl ResourceRestHandlerImpl) CreateResource(c *gin.Context)

func (ResourceRestHandlerImpl) DeleteResource

func (impl ResourceRestHandlerImpl) DeleteResource(c *gin.Context)

func (ResourceRestHandlerImpl) FindAllResources

func (impl ResourceRestHandlerImpl) FindAllResources(c *gin.Context)

func (ResourceRestHandlerImpl) GetMetaInfo

func (impl ResourceRestHandlerImpl) GetMetaInfo(c *gin.Context)

func (ResourceRestHandlerImpl) GetResource

func (impl ResourceRestHandlerImpl) GetResource(c *gin.Context)

func (ResourceRestHandlerImpl) TestConnection

func (impl ResourceRestHandlerImpl) TestConnection(c *gin.Context)

func (ResourceRestHandlerImpl) UpdateResource

func (impl ResourceRestHandlerImpl) UpdateResource(c *gin.Context)

type RoomRequest

type RoomRequest struct {
	Name string `json:"RoomName" validate:"required"`
}

type RoomRestHandler

type RoomRestHandler interface {
	GetDashboardRoomConn(c *gin.Context)
	GetAppRoomConn(c *gin.Context)
}

type RoomRestHandlerImpl

type RoomRestHandlerImpl struct {
	RoomService room.RoomService
	// contains filtered or unexported fields
}

func NewRoomRestHandlerImpl

func NewRoomRestHandlerImpl(logger *zap.SugaredLogger, RoomService room.RoomService) *RoomRestHandlerImpl

func (RoomRestHandlerImpl) GetAppRoomConn

func (impl RoomRestHandlerImpl) GetAppRoomConn(c *gin.Context)

func (RoomRestHandlerImpl) GetDashboardRoomConn

func (impl RoomRestHandlerImpl) GetDashboardRoomConn(c *gin.Context)

type SignInRequest

type SignInRequest struct {
	Email    string `json:"email" validate:"required"`
	Password string `json:"password" validate:"required"`
}

type SignUpRequest

type SignUpRequest struct {
	Nickname          string `json:"nickname" validate:"required"`
	Email             string `json:"email" validate:"required"`
	Password          string `json:"password" validate:"required"`
	Language          string `json:"language" validate:"oneof=zh-CN en-US ko-KR ja-JP"`
	IsSubscribed      bool   `json:"isSubscribed"`
	VerificationCode  string `json:"verificationCode"`
	VerificationToken string `json:"verificationToken"`
}

type UserRestHandler

type UserRestHandler interface {
	GetVerificationCode(c *gin.Context)
	SignUp(c *gin.Context)
	SignIn(c *gin.Context)
	ForgetPassword(c *gin.Context)
	UpdateUsername(c *gin.Context)
	UpdatePassword(c *gin.Context)
	UpdateLanguage(c *gin.Context)
	GetUserInfo(c *gin.Context)
}

type UserRestHandlerImpl

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

func NewUserRestHandlerImpl

func NewUserRestHandlerImpl(logger *zap.SugaredLogger, userService user.UserService) *UserRestHandlerImpl

func (UserRestHandlerImpl) ForgetPassword

func (impl UserRestHandlerImpl) ForgetPassword(c *gin.Context)

func (UserRestHandlerImpl) GetUserInfo

func (impl UserRestHandlerImpl) GetUserInfo(c *gin.Context)

func (UserRestHandlerImpl) GetVerificationCode

func (impl UserRestHandlerImpl) GetVerificationCode(c *gin.Context)

func (UserRestHandlerImpl) SignIn

func (impl UserRestHandlerImpl) SignIn(c *gin.Context)

func (UserRestHandlerImpl) SignUp

func (impl UserRestHandlerImpl) SignUp(c *gin.Context)

func (UserRestHandlerImpl) UpdateLanguage

func (impl UserRestHandlerImpl) UpdateLanguage(c *gin.Context)

func (UserRestHandlerImpl) UpdatePassword

func (impl UserRestHandlerImpl) UpdatePassword(c *gin.Context)

func (UserRestHandlerImpl) UpdateUsername

func (impl UserRestHandlerImpl) UpdateUsername(c *gin.Context)

type Username

type Username struct {
	Nickname string `json:"nickname" validate:"required"`
}

type VerificationRequest

type VerificationRequest struct {
	Email string `json:"email" validate:"required"`
	Usage string `json:"usage" validate:"oneof=signup forgetpwd"`
}

Jump to

Keyboard shortcuts

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