domain

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Example

type Example struct {
	Id       int64
	Domain   string
	Name     string
	Status   bool
	CreateAt string
	UpdateAt string
}

func ToDomainExample

func ToDomainExample(data interface{}) *Example

ToDomainExample 将pb结构体转换为domain包下的Example结构体

func (*Example) CreatedAt

func (example *Example) CreatedAt(timestamp time.Time)

func (*Example) ID

func (example *Example) ID(id int64)

func (*Example) Pb

func (example *Example) Pb() *exampleV1.Example

Pb 将domain结构体转换为pb结构体

func (*Example) UpdatedAt

func (example *Example) UpdatedAt(timestamp time.Time)

Jump to

Keyboard shortcuts

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