diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-07-31 12:59:32 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-31 12:59:32 -0400 |
commit | 59992ae4a4638006ec1489dd834151b258c1728c (patch) | |
tree | 8bc5c0fa8f6a4d6a40026c965bd865c1110af838 /store/store.go | |
parent | ed62660e96528920b0ecb8c755265c6c8d2756c4 (diff) | |
download | chat-59992ae4a4638006ec1489dd834151b258c1728c.tar.gz chat-59992ae4a4638006ec1489dd834151b258c1728c.tar.bz2 chat-59992ae4a4638006ec1489dd834151b258c1728c.zip |
PLT-6763 Implement user access tokens and new roles (server-side) (#6972)
* Implement user access tokens and new roles
* Update config.json
* Add public post permission to apiv3
* Remove old comment
* Fix model unit test
* Updates to store per feedback
* Updates per feedback from CS
Diffstat (limited to 'store/store.go')
-rw-r--r-- | store/store.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/store/store.go b/store/store.go index 6d84a0919..d883ea5a2 100644 --- a/store/store.go +++ b/store/store.go @@ -49,6 +49,7 @@ type Store interface { FileInfo() FileInfoStore Reaction() ReactionStore Job() JobStore + UserAccessToken() UserAccessTokenStore MarkSystemRanUnitTests() Close() DropAllTables() @@ -398,3 +399,12 @@ type JobStore interface { GetAllByStatus(status string) StoreChannel Delete(id string) StoreChannel } + +type UserAccessTokenStore interface { + Save(token *model.UserAccessToken) StoreChannel + Delete(tokenId string) StoreChannel + DeleteAllForUser(userId string) StoreChannel + Get(tokenId string) StoreChannel + GetByToken(tokenString string) StoreChannel + GetByUser(userId string, page, perPage int) StoreChannel +} |