34 lines
1.4 KiB
Go
34 lines
1.4 KiB
Go
package logic
|
|
|
|
import (
|
|
"github.com/fonchain/fonchain-artistinfo/cmd/internal/dao"
|
|
"github.com/fonchain/fonchain-artistinfo/pb/artistinfoStatement"
|
|
"google.golang.org/protobuf/types/known/emptypb"
|
|
)
|
|
|
|
type StatementServerLogic struct{}
|
|
|
|
func (s *StatementServerLogic) CreateStatementBatch(in *artistinfoStatement.StatementBatchRequest) (res *artistinfoStatement.CreateStatementBatchResponse, err error) {
|
|
return dao.CreateStatementBatch(in)
|
|
}
|
|
|
|
func (s *StatementServerLogic) BatchCreateStatementBatch(in *artistinfoStatement.BatchCreateStatementBatchRequest) (*emptypb.Empty, error) {
|
|
return dao.BatchCreateStatementBatch(in)
|
|
}
|
|
|
|
func (s *StatementServerLogic) GetStatementBatchList(in *artistinfoStatement.GetStatementBatchListRequest) (*artistinfoStatement.GetStatementBatchListResponse, error) {
|
|
return dao.GetStatementBatchList(in)
|
|
}
|
|
|
|
func (s *StatementServerLogic) CreateStatementDetail(in *artistinfoStatement.StatementDetailRequest) (*artistinfoStatement.CreateStatementDetailResponse, error) {
|
|
return dao.CreateStatementDetail(in)
|
|
}
|
|
|
|
func (s *StatementServerLogic) BatchCreateStatementDetail(in *artistinfoStatement.BatchCreateStatementDetailRequest) (*emptypb.Empty, error) {
|
|
return dao.BatchCreateStatementDetail(in)
|
|
}
|
|
|
|
func (s *StatementServerLogic) GetStatementDetailList(in *artistinfoStatement.GetStatementDetailListRequest) (*artistinfoStatement.GetStatementDetailListResponse, error) {
|
|
return dao.GetStatementDetailList(in)
|
|
}
|