mirror of
https://github.com/usememos/memos.git
synced 2024-11-10 17:02:21 +08:00
chore: update
This commit is contained in:
parent
a0f8e6987c
commit
ed1ff11e80
2 changed files with 13 additions and 2 deletions
|
@ -162,8 +162,8 @@ func (s *UserService) ListUserAccessTokens(ctx context.Context, request *apiv2pb
|
|||
}
|
||||
|
||||
// Sort by issued time in descending order.
|
||||
slices.SortFunc(accessTokens, func(i, j *apiv2pb.UserAccessToken) bool {
|
||||
return i.IssuedAt.Seconds > j.IssuedAt.Seconds
|
||||
slices.SortFunc(accessTokens, func(i, j *apiv2pb.UserAccessToken) int {
|
||||
return int(i.IssuedAt.Seconds - j.IssuedAt.Seconds)
|
||||
})
|
||||
response := &apiv2pb.ListUserAccessTokensResponse{
|
||||
AccessTokens: accessTokens,
|
||||
|
|
11
proto/store/activity.proto
Normal file
11
proto/store/activity.proto
Normal file
|
@ -0,0 +1,11 @@
|
|||
syntax = "proto3";
|
||||
|
||||
package memos.store;
|
||||
|
||||
option go_package = "gen/store";
|
||||
|
||||
message ActivityMemoCommentCreatePayload {
|
||||
int32 memo_id = 1;
|
||||
int32 user_id = 2;
|
||||
int32
|
||||
}
|
Loading…
Reference in a new issue