core

package
v0.0.0-...-889a1ee Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2024 License: Apache-2.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 BaseDto

type BaseDto struct {
	Id        uint64     //id
	CreatedAt *time.Time //创建时间
	UpdatedAt *time.Time //更新时间
}

BaseDto 基础数据传输对象

type BaseEntity

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

BaseEntity 实体基类

func (*BaseEntity) EntityStatus

func (e *BaseEntity) EntityStatus(status Status)

EntityStatus 设置实体状态

func (*BaseEntity) IsNew

func (e *BaseEntity) IsNew() bool

IsNew 是否新建

func (*BaseEntity) IsPersist

func (e *BaseEntity) IsPersist() bool

IsPersist 是否持久化

type PageParam

type PageParam struct {
	Current  int `json:"current"`
	PageSize int `json:"pageSize"`
}

func (*PageParam) InitPageParam

func (p *PageParam) InitPageParam()

type PaginationDto

type PaginationDto struct {
	Current  int `json:"current"`
	PageSize int `json:"pageSize"`
	Total    int `json:"total"`
}

PaginationDto 分页数据传输对象

type Status

type Status string
const (
	// New  表示实体是刚创建状态,没有进行持久化
	New Status = "New"
	// Persist  表示实体是持久化状态
	Persist Status = "Persist"
)

func (*Status) IsNew

func (e *Status) IsNew() bool

IsNew 判断实体是否是刚创建状态

func (*Status) IsPersist

func (e *Status) IsPersist() bool

IsPersist 判断实体是否是持久化状态

type SystemCode

type SystemCode string

SystemCode 系统代码

Jump to

Keyboard shortcuts

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