Files

23 lines
483 B
Go
Raw Normal View History

2022-01-19 13:23:07 +08:00
package manage
2022-01-19 14:22:44 +08:00
import (
"SciencesServer/app/basic/config"
model2 "SciencesServer/app/common/model"
)
2022-01-19 13:23:07 +08:00
// BasicParams 基本信息
type BasicParams struct {
ID, TenantID uint64
Name, Image, Code, Mobile, Introduce string
config.Area
Industrys, Keywords []string
}
2022-01-19 14:22:44 +08:00
func (c *BasicParams) isExist(iModel model2.IModel, where ...*model2.ModelWhere) (bool, error) {
var count int64
err := model2.Count(iModel, &count, where...)
return count > 0, err
}