structs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseFlow

type BaseFlow struct {
	Id             int
	FlowType       int
	FlowName       string
	Status         int
	CreateAt       string
	UpdateAt       string
	LastUpdateUser string
	DeleteAt       string
	Remark         string
}

func (*BaseFlow) Add

func (bf *BaseFlow) Add() error

func (*BaseFlow) Del

func (bf *BaseFlow) Del(idList []string) error

func (*BaseFlow) Query

func (bf *BaseFlow) Query() ([]Flow, error)

func (*BaseFlow) Update

func (bf *BaseFlow) Update() error

type ConcreteFlow

type ConcreteFlow struct {
	BaseFlow

	DataList []string
	TaskId   string
}

func NewConcreteFlow

func NewConcreteFlow(flowType, status int, flowName string) *ConcreteFlow

func (*ConcreteFlow) Add

func (cf *ConcreteFlow) Add() error

type Flow

type Flow interface {
	Add() error
	Del([]string) error
	Update() error
	Query() ([]Flow, error)
}

Jump to

Keyboard shortcuts

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