e1f28df1e1
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / analysis (push) Successful in 33s
CI / bff (push) Successful in 0s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 1s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 0s
CI / store (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 1s
CI / water (push) Successful in 0s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
50 lines
918 B
Go
50 lines
918 B
Go
package model
|
|
|
|
import (
|
|
"lone-services/pkg/modelbase"
|
|
"lone-services/services/analysis/internal/dao"
|
|
)
|
|
|
|
type FaceppAnalysisModel struct {
|
|
modelbase.Base
|
|
}
|
|
|
|
func (m FaceppAnalysisModel) TableName() string {
|
|
return modelbase.Prefix() + "facepp_analyses"
|
|
}
|
|
|
|
func (m FaceppAnalysisModel) Init() FaceppAnalysisModel {
|
|
m.Table = m.TableName()
|
|
return m
|
|
}
|
|
|
|
type FaceppMapModel struct {
|
|
modelbase.Base
|
|
}
|
|
|
|
func (m FaceppMapModel) TableName() string {
|
|
return modelbase.Prefix() + "facepp_maps"
|
|
}
|
|
|
|
func (m FaceppMapModel) Init() FaceppMapModel {
|
|
m.Table = m.TableName()
|
|
return m
|
|
}
|
|
|
|
type FaceppMapBoxModel struct {
|
|
modelbase.Base
|
|
}
|
|
|
|
func (m FaceppMapBoxModel) TableName() string {
|
|
return modelbase.Prefix() + "facepp_map_boxes"
|
|
}
|
|
|
|
func (m FaceppMapBoxModel) Init() FaceppMapBoxModel {
|
|
m.Table = m.TableName()
|
|
return m
|
|
}
|
|
|
|
func (m FaceppMapBoxModel) Create(data *dao.FaceppMapBox) error {
|
|
return m.Base.Create(data)
|
|
}
|