modelx

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IDModel

type IDModel struct {
	Id int64 `json:"id" validate:"required"` // 主健
}

IDModel 主健模型

type ReqPageWrapper

type ReqPageWrapper struct {
	PageSize int `json:"pageSize"` // 每页条数
	PageNo   int `json:"pageNo"`   // 当前页码
}

ReqPageWrapper 请求分页

type RespOptModel

type RespOptModel struct {
	Num int `json:"num"` // 影响数据条数
}

RespOptModel 通用操作返回值

type RespPageModel

type RespPageModel struct {
	Total int `json:"total"` // 总记录数
	List  any `json:"list"`  // 当前页数据
}

RespPageModel 分页返回值

type RespWrapper

type RespWrapper struct {
	Code    int    `json:"code"`           // 返回状态编码: 0: 成功, 请参见错误码表
	Msg     string `json:"msg"`            // 错误消息
	Data    any    `json:"data,omitempty"` // 结果数据
	Traceid string `json:"traceid"`        // 链路追踪ID
}

RespWrapper 统一返回数据格式

Jump to

Keyboard shortcuts

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