feat: paste creation, utilities, revert to gzip, grammar fixes etc

This commit is contained in:
2025-11-25 01:17:16 -05:00
parent 6ec1a7fa7b
commit 93daa2e1a2
19 changed files with 949 additions and 23 deletions
+4 -2
View File
@@ -1,15 +1,17 @@
using SharpbinV3.Data.Entities;
using SharpbinV3.DTOs;
namespace SharpbinV3.Services
{
public interface IPasteService
{
Task<Paste> Create(Paste paste);
Task<Paste> Create(User? author, string content, string title, string syntax, int visibility, long expiresAt);
Task<bool> Delete(Paste paste);
Task<Paste> Edit(Paste paste);
Task<bool> Exists(string id);
Task<bool> Exists(Guid uuid);
Task<bool> EditText(Paste paste, string text);
Task<Paste> Get(string id);
Task<List<Paste>> GetList(int offset, int count);
Task<List<Paste>> GetList(int offset, int count, bool publicOnly = false);
}
}