action

package
v0.0.0-...-4834045 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package action アクション確認リクエスト

Package action アクションマスター取得レスポンス

Package action アクション実行リクエスト

Package action is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionCheckRequest

type ActionCheckRequest struct {
	UserId               string
	MasterActionStepEnum masterActionStep.MasterActionStepEnum
	TargetId             *int64
}

func NewActionCheckRequest

func NewActionCheckRequest() *ActionCheckRequest

func SetActionCheckRequest

func SetActionCheckRequest(userId string, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) *ActionCheckRequest

type ActionCheckRequests

type ActionCheckRequests []*ActionCheckRequest

func NewActionCheckRequests

func NewActionCheckRequests() ActionCheckRequests

type ActionGetListMasterResponse

type ActionGetListMasterResponse struct {
	MasterActions        masterAction.MasterActions
	MasterActionRuns     masterActionRun.MasterActionRuns
	MasterActionSteps    masterActionStep.MasterActionSteps
	MasterActionTriggers masterActionTrigger.MasterActionTriggers
}

func NewActionGetListMasterResponse

func NewActionGetListMasterResponse() *ActionGetListMasterResponse

func SetActionGetListMasterResponse

func SetActionGetListMasterResponse(masterActions masterAction.MasterActions, masterActionRuns masterActionRun.MasterActionRuns, masterActionSteps masterActionStep.MasterActionSteps, masterActionTriggers masterActionTrigger.MasterActionTriggers) *ActionGetListMasterResponse

type ActionGetListMasterResponses

type ActionGetListMasterResponses []*ActionGetListMasterResponse

func NewActionGetListMasterResponses

func NewActionGetListMasterResponses() ActionGetListMasterResponses

type ActionRunRequest

type ActionRunRequest struct {
	UserId               string
	MasterActionStepEnum masterActionStep.MasterActionStepEnum
	TargetId             *int64
}

func NewActionRunRequest

func NewActionRunRequest() *ActionRunRequest

func SetActionRunRequest

func SetActionRunRequest(userId string, masterActionStepEnum masterActionStep.MasterActionStepEnum, targetId *int64) *ActionRunRequest

type ActionRunRequests

type ActionRunRequests []*ActionRunRequest

func NewActionRunRequests

func NewActionRunRequests() ActionRunRequests

type ActionService

type ActionService interface {
	GetListMaster(ctx context.Context) (*ActionGetListMasterResponse, error)
	Check(ctx context.Context, now time.Time, req *ActionCheckRequest) error
	Run(ctx context.Context, tx *gorm.DB, now time.Time, req *ActionRunRequest) error
}

func NewActionService

func NewActionService(
	masterActionMysqlRepository masterAction.MasterActionMysqlRepository,
	masterActionRunMysqlRepository masterActionRun.MasterActionRunMysqlRepository,
	masterActionStepMysqlRepository masterActionStep.MasterActionStepMysqlRepository,
	masterActionTriggerMysqlRepository masterActionTrigger.MasterActionTriggerMysqlRepository,
	userActionMysqlRepository userAction.UserActionMysqlRepository,
) ActionService

type MockActionService

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

MockActionService is a mock of ActionService interface.

func NewMockActionService

func NewMockActionService(ctrl *gomock.Controller) *MockActionService

NewMockActionService creates a new mock instance.

func (*MockActionService) Check

Check mocks base method.

func (*MockActionService) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockActionService) GetListMaster

GetListMaster mocks base method.

func (*MockActionService) Run

func (m *MockActionService) Run(ctx context.Context, tx *gorm.DB, now time.Time, req *ActionRunRequest) error

Run mocks base method.

type MockActionServiceMockRecorder

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

MockActionServiceMockRecorder is the mock recorder for MockActionService.

func (*MockActionServiceMockRecorder) Check

func (mr *MockActionServiceMockRecorder) Check(ctx, now, req interface{}) *gomock.Call

Check indicates an expected call of Check.

func (*MockActionServiceMockRecorder) GetListMaster

func (mr *MockActionServiceMockRecorder) GetListMaster(ctx interface{}) *gomock.Call

GetListMaster indicates an expected call of GetListMaster.

func (*MockActionServiceMockRecorder) Run

func (mr *MockActionServiceMockRecorder) Run(ctx, tx, now, req interface{}) *gomock.Call

Run indicates an expected call of Run.

Directories

Path Synopsis
Package masterAction アクション
Package masterAction アクション
Package masterActionRun 実行されるアクション
Package masterActionRun 実行されるアクション
Package masterActionStep アクションステップEnum
Package masterActionStep アクションステップEnum
Package masterActionTrigger アクショントリガーEnum
Package masterActionTrigger アクショントリガーEnum
Package userAction ユーザーアクション
Package userAction ユーザーアクション

Jump to

Keyboard shortcuts

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