This commit is contained in:
小蚂蚁云
2026-10-26 08:46:20 +08:00
parent 276740924a
commit 69f5c1767d
26 changed files with 259 additions and 121 deletions
+8
View File
@@ -30,6 +30,14 @@ type PageData struct {
Total int `json:"total"` // 总记录数
}
// MsgProvider 业务结果自定义成功提示语接口
//
// 成功信封默认 msg 为"操作成功";实现本接口的结果对象可按自身数据生成
// 面向用户的提示语(如导入结果"成功导入 X 条数据"),由统一出口优先采用。
type MsgProvider interface {
ResMsg() string
}
// Ok 构造成功响应
//
// data 为 nil 时输出空对象,避免前端判空逻辑失败