refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,27 @@
// Package payment 支付相关业务逻辑
package payment
import (
"context"
pb "bsm/full/module/finance/wallet/pb"
"git.apinb.com/bsm-sdk/core/service"
)
// Hello 支付服务健康检查接口
// 用于验证支付服务是否正常运行
func Hello(ctx context.Context, in *pb.Empty) (reply *pb.PaymentReply, err error) {
// 解析授权元数据
_, err = service.ParseMetaCtx(ctx, nil)
if err != nil {
return nil, err
}
// 返回服务状态信息
return &pb.PaymentReply{
Result: map[string]string{
"message": "Payment service is running",
"status": "healthy",
},
}, nil
}