20 lines
503 B
Go
20 lines
503 B
Go
package service
|
|
|
|
import (
|
|
"context"
|
|
|
|
"slogan-agent/styleagent/dao"
|
|
"slogan-agent/styleagent/model/entity"
|
|
)
|
|
|
|
type payNotifyLogService struct{}
|
|
|
|
var PayNotifyLogService = new(payNotifyLogService)
|
|
|
|
// Insert 回调日志全量入库(审计)
|
|
func (s *payNotifyLogService) Insert(ctx context.Context, orderNo, body, sign, remoteIP, status string) error {
|
|
return dao.PayNotifyLog.Insert(ctx, &entity.PayNotifyLog{
|
|
OrderNo: orderNo, Body: body, Sign: sign, RemoteIp: remoteIP, Status: status,
|
|
})
|
|
}
|