Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eacf598128
|
||
|
|
f7baac328a |
@@ -18,14 +18,14 @@ jobs:
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v6
|
||||
with:
|
||||
go-version: '1.26.1'
|
||||
go-version: '1.26.2'
|
||||
|
||||
- name: Create version
|
||||
id: version
|
||||
run: |
|
||||
echo "Creating version"
|
||||
|
||||
VERSION="0.2.0"
|
||||
VERSION="0.2.1"
|
||||
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
|
||||
BRANCH_REF="${{ gitea.ref }}"
|
||||
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package user
|
||||
|
||||
import (
|
||||
"time"
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
|
||||
type UserLoginHistory struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
LoginTime time.Time `json:"login_time"`
|
||||
UserId uuid.UUID `json:"user_id"`
|
||||
}
|
||||
|
||||
type ServiceUserLoginHistory struct {
|
||||
Id uuid.UUID `json:"id"`
|
||||
LoginTime time.Time `json:"login_time"`
|
||||
ServiceUserId uuid.UUID `json:"service_user_id"`
|
||||
}
|
||||
Reference in New Issue
Block a user