model

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DemoCreateInput

type DemoCreateInput struct {
	Fielda string
	Fieldb string
}

type DemoCreateOutput

type DemoCreateOutput struct {
	ID uint
}

type DemoListInput

type DemoListInput struct {
	PageNum  int
	PageSize int
}

type DemoListOutput

type DemoListOutput struct {
	PageNum  int
	PageSize int
	Total    int
	List     []DemoListOutputItem
}

type DemoListOutputItem

type DemoListOutputItem struct {
	ID        uint        `json:"id"`
	Fielda    string      `json:"fielda"`
	CreatedAt *gtime.Time `json:"created_at"`
	UpdatedAt *gtime.Time `json:"updated_at"`
}

DemoListOutputItem NOTE: 此处为了不返回Fieldb字段, 所以重新定义返回结构体, 否则可以直接使用enttity.Demo.

type DemoUpdateInput

type DemoUpdateInput struct {
	ID     uint
	Fielda string
	Fieldb string
}

type DemoUpdateOutput

type DemoUpdateOutput struct {
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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