mirror of
https://github.com/KaySar12/NextZen-UserService.git
synced 2025-10-06 19:59:42 +07:00
init
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package model
|
||||
|
||||
type EventModel struct {
|
||||
UUID string `gorm:"primaryKey" json:"uuid"`
|
||||
SourceID string `gorm:"index" json:"source_id"`
|
||||
Name string `json:"name"`
|
||||
Properties string `gorm:"serializer:json" json:"properties"`
|
||||
Timestamp int64 `gorm:"autoCreateTime:milli" json:"timestamp"`
|
||||
}
|
||||
|
||||
func (p *EventModel) TableName() string {
|
||||
return "events"
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package model
|
||||
|
||||
type CommonModel struct {
|
||||
RuntimePath string
|
||||
}
|
||||
|
||||
type APPModel struct {
|
||||
LogPath string
|
||||
LogSaveName string
|
||||
LogFileExt string
|
||||
UserDataPath string
|
||||
DBPath string
|
||||
}
|
||||
|
||||
type Result struct {
|
||||
Success int `json:"success" example:"200"`
|
||||
Message string `json:"message" example:"ok"`
|
||||
Data interface{} `json:"data" example:"返回结果"`
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* @Author: LinkLeong link@icewhale.com
|
||||
* @Date: 2022-06-15 11:30:47
|
||||
* @LastEditors: LinkLeong
|
||||
* @LastEditTime: 2022-06-23 18:40:40
|
||||
* @Description:
|
||||
* @Website: https://www.casaos.io
|
||||
* Copyright (c) 2022 by icewhale, All Rights Reserved.
|
||||
*/
|
||||
package system_model
|
||||
|
||||
type VerifyInformation struct {
|
||||
RefreshToken string `json:"refresh_token"`
|
||||
AccessToken string `json:"access_token"`
|
||||
ExpiresAt int64 `json:"expires_at"`
|
||||
}
|
||||
Reference in New Issue
Block a user