2023-03-22 08:16:16 +00:00
|
|
|
package controller
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"fmt"
|
|
|
|
|
|
|
|
"github.com/fonchain/fonchain-artistinfo/cmd/internal/logic"
|
|
|
|
statement "github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ArtistInfoStatementProvider struct {
|
|
|
|
statement.UnimplementedStatementServer
|
|
|
|
statementLogic *logic.Statement
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ArtistInfoStatementProvider) StatementList(ctx context.Context, req *statement.StatementListRequest) (rep *statement.StatementListRespond, err error) {
|
|
|
|
fmt.Println("第一处")
|
|
|
|
if rep, err = c.statementLogic.StatementList(req); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return rep, nil
|
|
|
|
}
|
2023-03-23 09:17:29 +00:00
|
|
|
|
|
|
|
func (c *ArtistInfoStatementProvider) GetTxInfoByBatchUid(ctx context.Context, req *statement.GetTxInfoByBatchUidRequest) (rep *statement.GetTxInfoByBatchUidRespond, err error) {
|
|
|
|
fmt.Println("第一处")
|
|
|
|
if rep, err = c.statementLogic.GetTxInfoByBatchUid(req); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return rep, nil
|
|
|
|
}
|
2023-03-24 06:11:43 +00:00
|
|
|
|
|
|
|
func (c *ArtistInfoStatementProvider) GetCopyInfoByBatchUid(ctx context.Context, req *statement.GetCopyInfoByBatchUidRequest) (rep *statement.GetCopyInfoByBatchUidRespond, err error) {
|
|
|
|
fmt.Println("第一处")
|
|
|
|
if rep, err = c.statementLogic.GetCopyInfoByBatchUid(req); err != nil {
|
|
|
|
return nil, err
|
|
|
|
}
|
|
|
|
return rep, nil
|
|
|
|
}
|