blob: 5ccecffffd6ab706aaec8c533fb90e5569eb0d82 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System;
using System.Threading.Tasks;
using DevHive.Services.Models.Post;
namespace DevHive.Services.Interfaces
{
public interface IPostService
{
Task<Guid> CreatePost(CreatePostServiceModel createPostServiceModel);
Task<ReadPostServiceModel> GetPostById(Guid id);
Task<Guid> UpdatePost(UpdatePostServiceModel updatePostServiceModel);
Task<bool> DeletePost(Guid id);
Task<bool> ValidateJwtForCreating(Guid userId, string rawTokenData);
Task<bool> ValidateJwtForPost(Guid postId, string rawTokenData);
}
}
|