feat:完善项目信息

This commit is contained in:
henry
2022-01-19 14:22:44 +08:00
parent 61d345b571
commit 417d7961ec
9 changed files with 128 additions and 25 deletions

View File

@ -1,6 +1,9 @@
package manage
import "SciencesServer/app/basic/config"
import (
"SciencesServer/app/basic/config"
model2 "SciencesServer/app/common/model"
)
// BasicParams 基本信息
type BasicParams struct {
@ -9,3 +12,11 @@ type BasicParams struct {
config.Area
Industrys, Keywords []string
}
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
}