memos/server/common.go
2022-02-04 17:06:04 +08:00

12 lines
153 B
Go

package server
func composeResponse(data interface{}) interface{} {
type R struct {
Data interface{} `json:"data"`
}
return R{
Data: data,
}
}