feat: rebind mobile
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type ImageAnalysis struct {
|
||||
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
TaskId string `gorm:"column:task_id" json:"task_id"`
|
||||
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
||||
FolderPath string `gorm:"column:folder_path" json:"folder_path"`
|
||||
Status int8 `gorm:"column:status" json:"status"`
|
||||
Message string `gorm:"column:message" json:"message"`
|
||||
UploadCount int8 `gorm:"column:upload_count" json:"upload_count"`
|
||||
Cover string `gorm:"column:cover" json:"cover"`
|
||||
Qrcode string `gorm:"column:qrcode" json:"qrcode"`
|
||||
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
||||
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
||||
}
|
||||
|
||||
type ReportDisplayResource struct {
|
||||
Status int8 `json:"status"`
|
||||
Qrcode string `json:"qrcode"`
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type ImageAnalysisSub struct {
|
||||
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
TaskId string `gorm:"column:task_id" json:"task_id"`
|
||||
SubTaskId string `gorm:"column:sub_task_id" json:"sub_task_id"`
|
||||
Status int8 `gorm:"column:status" json:"status"`
|
||||
FilePath string `gorm:"column:file_path" json:"file_path"`
|
||||
ImageDir string `gorm:"column:image_dir" json:"image_dir"`
|
||||
Scene string `gorm:"column:scene" json:"scene"`
|
||||
UploadStartTs string `gorm:"column:upload_start_ts" json:"upload_start_ts"`
|
||||
UploadEndTs string `gorm:"column:upload_end_ts" json:"upload_end_ts"`
|
||||
ProcessStartTs string `gorm:"column:process_start_ts" json:"process_start_ts"`
|
||||
ProcessEndTs string `gorm:"column:process_end_ts" json:"process_end_ts"`
|
||||
CreatedAt utils.CustomTime `gorm:"column:created_at" json:"created_at"`
|
||||
UpdatedAt utils.CustomTime `gorm:"column:updated_at" json:"updated_at"`
|
||||
}
|
||||
|
||||
type HandleZipResource struct {
|
||||
FilePath string `json:"file_path"`
|
||||
FinalDir string `json:"final_dir"`
|
||||
TargetDir string `json:"target_dir"`
|
||||
}
|
||||
|
||||
type TaskTimeStamp struct {
|
||||
TaskId string
|
||||
SubTaskId string
|
||||
UploadStartTs string
|
||||
UploadEndTs string
|
||||
ProcessStartTs string
|
||||
}
|
||||
@@ -13,4 +13,12 @@ const (
|
||||
|
||||
SkinTypeUser int32 = 1
|
||||
SkinTypeStore int32 = 2
|
||||
|
||||
AnalysisStatusPending int8 = 1
|
||||
AnalysisStatusProcessing int8 = 2
|
||||
AnalysisStatusDone int8 = 3
|
||||
AnalysisStatusFailed int8 = 4
|
||||
|
||||
DisplayStatusReady int8 = 1
|
||||
DisplayStatusWaiting int8 = 2
|
||||
)
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
package dao
|
||||
|
||||
import "lone-services/pkg/utils"
|
||||
|
||||
type Image struct {
|
||||
Id int64 `gorm:"column:id;primaryKey;autoIncrement" json:"id"`
|
||||
UserId int64 `gorm:"column:user_id" json:"user_id"`
|
||||
TaskId string `gorm:"column:task_id" json:"task_id"`
|
||||
Tag string `gorm:"column:tag" json:"tag"`
|
||||
Images string `gorm:"column:images" json:"images"`
|
||||
Contents string `gorm:"column:contents" json:"contents"`
|
||||
Cover string `gorm:"column:cover" json:"cover"`
|
||||
Status int8 `gorm:"column:status" json:"status"`
|
||||
CreateTime utils.CustomTime `gorm:"column:create_time" json:"create_time"`
|
||||
}
|
||||
|
||||
type ImageDetailResource struct {
|
||||
Id int64 `json:"id"`
|
||||
UserId int64 `json:"user_id"`
|
||||
TaskId string `json:"task_id"`
|
||||
Images map[string]interface{} `json:"images"`
|
||||
Contents interface{} `json:"contents"`
|
||||
Cover string `json:"cover"`
|
||||
CreateTime string `json:"create_time"`
|
||||
}
|
||||
Reference in New Issue
Block a user