fonchain-artistinfo/cmd/internal/logic/artistinfo_statement.go
2023-03-16 18:17:12 +08:00

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)
}