Created
November 16, 2020 07:43
-
-
Save asim/a3c7875a5fc47439b43740b274ab3ac3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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