- tools/{uuid,md5,random,time,ip}/index.go → 对应 <功能名>.go(git mv 保留历史)
- 目录名=包名=文件名三一致,扩展时目录内按功能加文件(ocr.go → + idcard.go + invoice.go)
- doc.go / AGENTS.md / PROJECT_STRUCTURE.md 同步规则说明
- 冒烟测试 5 端点全部通过
16 lines
403 B
Go
16 lines
403 B
Go
// Package md5 defines the POST /tools/md5 endpoint contract.
|
|
package md5
|
|
|
|
import "github.com/gogf/gf/v2/frame/g"
|
|
|
|
// MD5Req computes an MD5 digest.
|
|
type MD5Req struct {
|
|
g.Meta `path:"/tools/md5" method:"post" tags:"Open/Tools" summary:"Compute MD5 digest"`
|
|
Text string `json:"text" v:"required#text required"`
|
|
}
|
|
|
|
// MD5Res is the response of MD5Req.
|
|
type MD5Res struct {
|
|
MD5 string `json:"md5"`
|
|
}
|