model

package
v0.0.0-...-ff80121 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitInfo

type GitInfo struct {
	Tag       string `json:"tag" description:"get tag name"`
	Version   string `json:"version" description:"git repo version."`
	ReleaseAt string `json:"releaseAt" description:"latest commit date"`
}

GitInfo app git info

{
	"version": "@pkg_version",
	"tag": "@pkg_branch_alias_version",
	"releaseAt": "@pkg_release_date"
}

type JsonData

type JsonData struct {
	Code    int         `json:"code" example:"0" description:"return status code, 0 is successful."`
	Message string      `json:"message" description:"return message"`
	Data    interface{} `json:"data" description:"return data"`
}

JsonData is api response body structure. HttpRes

type JsonListData

type JsonListData struct {
	Code    int      `json:"code" description:"return code, 0 is successful."`
	Message string   `json:"message" description:"return message"`
	Data    []string `json:"data" description:"return data"`
}

JsonListData only use for swagger docs

type JsonMapData

type JsonMapData struct {
	Code    int    `json:"code" description:"return code, 0 is successful."`
	Message string `json:"message" description:"return message"`

	Data map[string]string `json:"data" description:"return data"`
}

JsonMapData only use for swagger docs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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