company.go 698 字节
package domain

import "time"

type Company struct {
	Id            int64     //公司编号
	Logo          string    //公司logo
	Name          string    //公司名称
	ChargeUserIds []int64   //公司级别的部门主管uids
	Status        int       //公司状态,1正常 2禁用
	UpdateAt      time.Time //更新时间
	CreateAt      time.Time //创建时间
	DeleteAt      *time.Time
}

type CompanyRepository interface {
	Insert(company *Company) (*Company, error)
	Update(Company *Company) (*Company, error)
	Remove(company *Company) (*Company, error)
	FindOne(queryOptions map[string]interface{}) (*Company, error)
	Find(queryOptions map[string]interface{}) (int, []*Company, error)
}