// Package controller ----------------------------- // @file : artwork.go // @author : JJXu // @contact : wavingbear@163.com // @time : 2023/2/24 18:12 // ------------------------------------------- package controller import ( "context" "errors" "github.com/fonchain/fonchain-artistinfo/cmd/internal/logic" "github.com/fonchain/fonchain-artistinfo/pb/artistInfoArtwork" ) var _ artistInfoArtwork.ArtistInfoArtworkServer = new(ArtistInfoArtworkProvider) type ArtistInfoArtworkProvider struct { artistInfoArtwork.UnimplementedArtistInfoArtworkServer artistInfoLogic *logic.ArtistInfoArtworkLogic } func (a ArtistInfoArtworkProvider) CreateArtworkLockRecord(ctx context.Context, req *artistInfoArtwork.CreateArtworkLockRecordReq) (*artistInfoArtwork.CommonNoParams, error) { if req.ArtworkUid == "" || req.ArtistUid == "" { return nil, errors.New("参数错误") } return a.artistInfoLogic.CreateArtworkLockRecord(req) } func (ArtistInfoArtworkProvider) ArtworkLockAction(ctx context.Context, request *artistInfoArtwork.ArtworkLockActionRequest) (*artistInfoArtwork.CommonNoParams, error) { //TODO implement me panic("implement me") } func (ArtistInfoArtworkProvider) GetArtworkRecordUids(ctx context.Context, request *artistInfoArtwork.GetArtworkLockRecordsRequest) (*artistInfoArtwork.ArtworkUidList, error) { //TODO implement me panic("implement me") } func (ArtistInfoArtworkProvider) DeleteArtworkRecord(context.Context, *artistInfoArtwork.ArtworkUidList) (*artistInfoArtwork.CommonNoParams, error) { //TODO implement me panic("implement me") }