Skip to content

Instantly share code, notes, and snippets.

@asim
Created November 16, 2020 07:43
Show Gist options
  • Save asim/a3c7875a5fc47439b43740b274ab3ac3 to your computer and use it in GitHub Desktop.
Save asim/a3c7875a5fc47439b43740b274ab3ac3 to your computer and use it in GitHub Desktop.
func (p *Posts) Delete(ctx context.Context, req *proto.DeleteRequest, rsp *proto.DeleteResponse) error {
logger.Info("Received Post.Delete request")
return p.db.Delete(model.Equals("id", req.Id))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment