structs

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 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 Computer added in v1.0.1

type Computer struct {
	Brand     string
	Model     string
	ProductNo string
	Remark    string
}

func NewComputer added in v1.0.1

func NewComputer() *Computer

func (*Computer) AddRemark added in v1.0.1

func (c *Computer) AddRemark(remark string) error

receiver类型为指针的方法。非*Computer类型的变量不可以调用

func (Computer) GetProductNo added in v1.0.1

func (c Computer) GetProductNo() string

receiver类型为非指针的方法。

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