Skip to content
Snippets Groups Projects
Commit 2bed92f7 authored by Anton Sattarov's avatar Anton Sattarov
Browse files

add decoder

parent ff01663a
No related branches found
No related tags found
No related merge requests found
package conv
import (
"git.perx.ru/perxis/perxis-go/pkg/invitations"
"git.perx.ru/perxis/perxis-go/pkg/options"
pb "git.perx.ru/perxis/perxis-go/proto/invitations"
)
type Decoder struct {
}
var _ invitations.ProtoDecoder = &Decoder{}
func (d Decoder) AcceptRequest(invitationId string, userId string) *pb.AcceptRequest {
return &pb.AcceptRequest{
InvitationId: invitationId,
UserId: userId,
}
}
func (d Decoder) CreateRequest(invitation *invitations.Invitation) *pb.CreateRequest {
// TODO implement me
panic("implement me")
}
func (d Decoder) CreateResponse(res *pb.CreateResponse) (created *invitations.Invitation) {
// TODO implement me
panic("implement me")
}
func (d Decoder) DeleteRequest(invitationId string) *pb.DeleteRequest {
// TODO implement me
panic("implement me")
}
func (d Decoder) FindRequest(filter *invitations.Filter, opts *options.FindOptions) *pb.FindRequest {
// TODO implement me
panic("implement me")
}
func (d Decoder) FindResponse(res *pb.FindResponse) (invitations []*invitations.Invitation, total int) {
// TODO implement me
panic("implement me")
}
func (d Decoder) GetRequest(invitationId string) *pb.GetRequest {
// TODO implement me
panic("implement me")
}
func (d Decoder) GetResponse(res *pb.GetResponse) (invitation *invitations.Invitation) {
// TODO implement me
panic("implement me")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment