feat: chore test
CI / changes (push) Successful in 13s
CI / docker-bff (push) Successful in 23s
CI / docker-product (push) Has been skipped
CI / docker-admin (push) Has been skipped
CI / docker-user (push) Successful in 3m26s
CI / docker-ad (push) Has been skipped

This commit is contained in:
zzw
2026-08-24 16:38:11 +08:00
55 changed files with 2075 additions and 144 deletions
+24
View File
@@ -0,0 +1,24 @@
package logic
import (
"lone-services/pkg/utils"
chore "lone-services/rpc/chore/pb"
jsoniter "github.com/json-iterator/go"
)
func okResponse(data any) *chore.Response {
buf, _ := jsoniter.Marshal(data)
return &chore.Response{
Code: utils.Ok.Code,
Msg: utils.Ok.Msg,
Data: string(buf),
}
}
func failResponse(status utils.Status) *chore.Response {
return &chore.Response{
Code: status.Code,
Msg: status.Msg,
}
}