company_applets.go
371 字节
package domain
type CompanyApplets struct {
Name string `json:"name"`
URL string `json:"url"`
ImageUrl string `json:"imageUrl"`
Id string `json:"id"`
}
func (applets CompanyApplets) Valid() bool {
if len(applets.Name) == 0 {
return false
}
if len(applets.URL) == 0 {
return false
}
if len(applets.Id) == 0 {
return false
}
return true
}