This commit is contained in:
2024-02-21 11:45:10 +07:00
commit 3cc6b026cc
45 changed files with 6677 additions and 0 deletions
+13
View File
@@ -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"
}
+19
View File
@@ -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:"返回结果"`
}
+16
View File
@@ -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"`
}