workflow

package
v0.0.0-...-cee649a Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyFunc

type ApplyFunc func(form generalForm.GeneralForm, userInfo user.UserInfo) (appID int, waErr webapiError.Err)
type GeneralWorkflow interface {
	Apply(form generalForm.GeneralForm, userInfo user.UserInfo) (appID int, waErr webapiError.Err)
	Process(form generalForm.GeneralForm, userInfo user.UserInfo) (waErr webapiError.Err)
}

type ApplyHookFunc

type ApplyHookFunc func(form generalForm.GeneralForm, userInfo user.UserInfo, appID int, waErr webapiError.Err)

type GeneralWorkflow

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

func NewGeneralWorkflow

func NewGeneralWorkflow(am map[KeyTSRA]ApplyFunc, pm map[KeyTSRA]ProcessFunc) GeneralWorkflow

func (GeneralWorkflow) Apply

func (gwf GeneralWorkflow) Apply(form generalForm.GeneralForm, userInfo user.UserInfo) (appID int, waErr webapiError.Err)

func (GeneralWorkflow) HookApply

func (gwf GeneralWorkflow) HookApply(k KeyTSRA, ahf ApplyHookFunc)

func (GeneralWorkflow) HookProcess

func (gwf GeneralWorkflow) HookProcess(k KeyTSRA, phf ProcessHookFunc)

func (GeneralWorkflow) Process

func (gwf GeneralWorkflow) Process(form generalForm.GeneralForm, app application.Application, userInfo user.UserInfo) (waErr webapiError.Err)

type KeyTSRA

type KeyTSRA struct {
	AppType   int
	AppStatus int
	UserRole  int
	Action    int
}

type ProcessFunc

type ProcessFunc func(form generalForm.GeneralForm, app application.Application, userInfo user.UserInfo) (waErr webapiError.Err)

type ProcessHookFunc

type ProcessHookFunc func(form generalForm.GeneralForm, app application.Application, userInfo user.UserInfo, waErr webapiError.Err)

Jump to

Keyboard shortcuts

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