// Package uuid defines the GET /tools/uuid endpoint contract. package uuid import "github.com/gogf/gf/v2/frame/g" // UUIDReq generates a unique ID. type UUIDReq struct { g.Meta `path:"/tools/uuid" method:"get" tags:"Open/Tools" summary:"Generate a unique ID"` Short bool `json:"short"` // true: 8-char short code; false: 32-char ID } // UUIDRes is the response of UUIDReq. type UUIDRes struct { UUID string `json:"uuid"` }