package domain type Position struct { //职位ID Id int64 `json:"id"` //公司ID CompanyId int64 `json:"companyId"` //职位名称 Name string `json:"name"` //父级职位ID ParentId int64 `json:"parentId"` //职位路径 Path string `json:"path"` //职位层级 Level int `json:"level"` } type PositionRepository interface { Insert(position *Position) (*Position, error) Update(position *Position) (*Position, error) Remove(ids []int64) error FindOne(queryOption map[string]interface{}) (*Position, error)
Find(queryOptions map[string]interface{}) (int, []*Position, error)
}