actualCombat

package
v0.0.0-...-8d22ec3 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndSpecification

type AndSpecification struct {
	Specification
	// contains filtered or unexported fields
}

与规格

func (*AndSpecification) IsSatisfiedBy

func (as *AndSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

type CompositeSpecification

type CompositeSpecification struct {
	Specification
}

组合规格

func (*CompositeSpecification) And

规格与操作

func (*CompositeSpecification) IsSatisfiedBy

func (cs *CompositeSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

func (*CompositeSpecification) Not

规格非操作

func (*CompositeSpecification) Or

规格或操作

func (*CompositeSpecification) Relate

func (cs *CompositeSpecification) Relate(spec Specification)

与规格有关

type InCollectionSpecification

type InCollectionSpecification struct {
	Specification
}

是否收到发票通知规格

func (*InCollectionSpecification) IsSatisfiedBy

func (ics *InCollectionSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

type Invoice

type Invoice struct {
	Day    int
	Notice int
	IsSent bool
}

发票数据对象

type NotSpecification

type NotSpecification struct {
	Specification
}

非规格

func (*NotSpecification) IsSatisfiedBy

func (ns *NotSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

type NoticeSentSpecification

type NoticeSentSpecification struct {
	Specification
}

通知发送规格

func (*NoticeSentSpecification) IsSatisfiedBy

func (ns *NoticeSentSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

type OrSpecification

type OrSpecification struct {
	Specification
	// contains filtered or unexported fields
}

或规格

func (*OrSpecification) IsSatisfiedBy

func (os *OrSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

type OverDueSpecification

type OverDueSpecification struct {
	Specification
}

数据到期规格

func (*OverDueSpecification) IsSatisfiedBy

func (os *OverDueSpecification) IsSatisfiedBy(in Invoice) bool

检查规格

type Specification

type Specification interface {
	IsSatisfiedBy(Invoice) bool
	And(Specification) Specification
	Or(Specification) Specification
	Not() Specification
	Relate(Specification)
}

数据规格接口

func NewInCollectionSpecification

func NewInCollectionSpecification() Specification

创建是否收到发票通知规格

func NewNoticeSentSpecification

func NewNoticeSentSpecification() Specification

创建通知发送规格

func NewOverDueSpecification

func NewOverDueSpecification() Specification

创建数据到期规格

Jump to

Keyboard shortcuts

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