service.xpcool.com/api/open/tools/uuid/uuid.go

16 lines
429 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package open_tools_uuid 定义 POST /tools/uuid 接口契约。
package open_tools_uuid
import "github.com/gogf/gf/v2/frame/g"
// UUIDReq 生成唯一 ID。
type UUIDReq struct {
g.Meta `path:"/tools/uuid" method:"post" tags:"Open/Tools" summary:"生成唯一 ID"`
Short bool `json:"short"` // true: 8 位短码false: 32 位 ID
}
// UUIDRes 是 UUIDReq 的响应。
type UUIDRes struct {
UUID string `json:"uuid"`
}