Compare commits

..
Author SHA1 Message Date
phoenix e832ff11a8 bump: textsender-models
Go CI / Test and Lint (push) Successful in 5s
Go Release / build-and-release (pull_request) Successful in 6s
Go CI / Test and Lint (pull_request) Successful in 5s
2026-05-26 22:06:59 -04:00
phoenix 21e91ebc7f go fmt
Go CI / Test and Lint (push) Successful in 6s
Go Release / build-and-release (pull_request) Successful in 7s
Go CI / Test and Lint (pull_request) Successful in 5s
2026-05-26 22:04:34 -04:00
phoenix eacf598128 Added structs for login histories
Go CI / Test and Lint (push) Successful in 12s
Go Release / build-and-release (pull_request) Successful in 6s
Go CI / Test and Lint (pull_request) Successful in 12s
2026-05-25 22:57:42 -04:00
3 changed files with 19 additions and 24 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
run: |
echo "Creating version"
VERSION="0.2.1"
VERSION="0.2.2"
PROJECT_COMMIT_HASH=$(git rev-parse HEAD | cut -c 1-10)
BRANCH_REF="${{ gitea.ref }}"
BRANCH_NAME=$(echo "$BRANCH_REF" | cut -d '/' -f 3)
+18
View File
@@ -0,0 +1,18 @@
package user
import (
"github.com/google/uuid"
"time"
)
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"`
}
-23
View File
@@ -1,23 +0,0 @@
package user
type UserProfile struct {
Usr *User `json:"user"`
}
func InitUserProfile(usr *User) (usrProfile *UserProfile, done bool) {
if usr == nil {
return nil, false
} else {
if len(usr.Password) > 0 {
newUsr := usr
newUsr.Password = ""
usrProfile.Usr = newUsr
return usrProfile, true
} else {
usrProfile.Usr = newUsr
return usrProfile, true
}
}
}