model

package
v0.4.1-alpha2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APPModel

type APPModel struct {
	LogPath      string
	LogSaveName  string
	LogFileExt   string
	UserDataPath string
	DBPath       string
}

type CommonModel

type CommonModel struct {
	RuntimePath string
}

type EventModel added in v0.4.0

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 (*EventModel) TableName added in v0.4.0

func (p *EventModel) TableName() string

type Result

type Result struct {
	Success int         `json:"success" example:"200"`
	Message string      `json:"message" example:"ok"`
	Data    interface{} `json:"data" example:"返回结果"`
}

Directories

Path Synopsis
* @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.
* @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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL