value_object

package
v0.11.36 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct{}

func (*Base) DBSchema

func (valueObject *Base) DBSchema() string

type ValueObject

type ValueObject interface {
	domain.Object

	// CheckKeyFields 校验关键字段,关键字段值能够唯一标识一个值对象的联合主键字段
	CheckKeyFields() error

	// ForCreate 创建准备方法(规则校验)
	ForCreate() error
}

ValueObject 值对象接口

Jump to

Keyboard shortcuts

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