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

16 lines
801 B
Go
Raw 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 承载开放工具接口GET/POST /tools/*)。
//
// 命名规则tools/ 下每个子功能一个独立目录目录名即包名Req/Res 契约放在
// 目录内以功能命名的文件中,例如:
//
// api/open/tools/uuid/uuid.go - POST /tools/uuid
// api/open/tools/md5/md5.go - POST /tools/md5
// api/open/tools/random/random.go - POST /tools/random
// api/open/tools/time/time.go - POST /tools/time
// api/open/tools/ip/ip.go - POST /tools/ip
//
// 功能增长时,在其目录内新增文件(如 ocr/ 下加 idcard.go、invoice.go
// 而不是把起始文件写大。新增功能:创建 tools/<name>/<name>.go 并在
// internal/controller/open/<name>.go 中增加对应方法,路由自动绑定。
package open_tools