feat: sale manager
This commit is contained in:
@@ -3,13 +3,16 @@ package logic
|
||||
import (
|
||||
"lone-services/pkg/utils"
|
||||
ad "lone-services/rpc/ad/pb"
|
||||
|
||||
jsoniter "github.com/json-iterator/go"
|
||||
)
|
||||
|
||||
func okResponse(data string) *ad.Response {
|
||||
func okResponse(data any) *ad.Response {
|
||||
buf, _ := jsoniter.Marshal(data)
|
||||
return &ad.Response{
|
||||
Code: utils.Ok.Code,
|
||||
Msg: utils.Ok.Msg,
|
||||
Data: data,
|
||||
Data: string(buf),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user