feat:完善项目信息
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user