server code

This commit is contained in:
袁智鸿
2026-01-07 18:04:01 +08:00
parent 35bd1e0898
commit f1fb7f5608
103 changed files with 3504 additions and 2 deletions
+11
View File
@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// Device is the golang structure for table device.
type Device struct {
Mac string `json:"mac" orm:"mac" description:""` //
Name string `json:"name" orm:"name" description:""` //
}
@@ -0,0 +1,19 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// DeviceDance is the golang structure for table device_dance.
type DeviceDance struct {
Id int64 `json:"id" orm:"id" description:""` //
Mac string `json:"mac" orm:"mac" description:"设备MAC地址"` // 设备MAC地址
DanceIndex int `json:"danceIndex" orm:"dance_index" description:"舞蹈编号,初始为1~3,可扩展"` // 舞蹈编号,初始为1~3,可扩展
DanceData string `json:"danceData" orm:"dance_data" description:"MotionData"` // MotionData
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:""` //
UpdatedAt *gtime.Time `json:"updatedAt" orm:"updated_at" description:""` //
}
@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// DeviceFriend is the golang structure for table device_friend.
type DeviceFriend struct {
MacA string `json:"macA" orm:"mac_a" description:""` //
MacB string `json:"macB" orm:"mac_b" description:""` //
}
@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// DevicePost is the golang structure for table device_post.
type DevicePost struct {
Id int64 `json:"id" orm:"id" description:""` //
Mac string `json:"mac" orm:"mac" description:"发帖设备MAC"` // 发帖设备MAC
ContentText string `json:"contentText" orm:"content_text" description:"文本内容"` // 文本内容
ContentImage string `json:"contentImage" orm:"content_image" description:"图片URL"` // 图片URL
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"发帖时间"` // 发帖时间
}
@@ -0,0 +1,18 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
import (
"github.com/gogf/gf/v2/os/gtime"
)
// DevicePostComment is the golang structure for table device_post_comment.
type DevicePostComment struct {
Id int64 `json:"id" orm:"id" description:""` //
PostId int64 `json:"postId" orm:"post_id" description:"帖子ID"` // 帖子ID
Mac string `json:"mac" orm:"mac" description:"评论设备MAC"` // 评论设备MAC
Content string `json:"content" orm:"content" description:"评论内容"` // 评论内容
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"评论时间"` // 评论时间
}
@@ -0,0 +1,11 @@
// =================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// =================================================================================
package entity
// SqliteSequence is the golang structure for table sqlite_sequence.
type SqliteSequence struct {
Name string `json:"name" orm:"name" description:""` //
Seq string `json:"seq" orm:"seq" description:""` //
}