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,35 @@
package verify
import (
"context"
"time"
pb "bsm/full/module/base/passport/pb"
"git.apinb.com/bsm-sdk/core/errcode"
"git.apinb.com/bsm-sdk/core/printer"
)
// KYC 认证回调
func JumioCallback(ctx context.Context, in *pb.JumioCallbackPayload) (reply *pb.StatusReply, err error) {
// Validate callback payload
if in == nil {
return nil, errcode.ErrInvalidArgument
}
// Log the callback for audit purposes
printer.Info("Received Jumio KYC callback: %+v", in)
// Process the KYC callback based on the payload
// This is where you would typically:
// 1. Verify the callback signature/authenticity
// 2. Update user verification status in database
// 3. Send notifications if needed
// 4. Log the verification result
// For now, return success
// In production, implement proper callback handling logic
return &pb.StatusReply{
Timeseq: time.Now().UnixMilli(),
}, nil
}