service/dbstruct/frontend_route.go

40 lines
1.1 KiB
Go

package dbstruct
type FrontendRoute struct {
Id *int64 `json:"id" bson:"_id"` // 前端页面路由表id
AppRoutePath *string `json:"app_route_path" bson:"app_route_path"` // app前端页面路由地址
H5RoutePath *string `json:"h5_route_path" bson:"h5_route_path"` // h5前端页面路由地址
Desc *string `json:"desc" bson:"desc"` // 前端页面描述
Ct *int64 `json:"ct" bson:"ct"` // 创建时间
Ut *int64 `json:"ut" bson:"ut"` // 更新时间
DelFlag *int64 `json:"del_flag" bson:"del_flag"` // 删除标记
}
func (p *FrontendRoute) GetId() int64 {
if p == nil || p.Id == nil {
return 0
}
return *p.Id
}
func (p *FrontendRoute) GetAppRoutePath() string {
if p == nil || p.AppRoutePath == nil {
return ""
}
return *p.AppRoutePath
}
func (p *FrontendRoute) GetH5RoutePath() string {
if p == nil || p.H5RoutePath == nil {
return ""
}
return *p.H5RoutePath
}
func (p *FrontendRoute) GetDesc() string {
if p == nil || p.Desc == nil {
return ""
}
return *p.Desc
}