company.go 720 字节
package domain

import "time"

type Company struct {
	Id            int64      //公司编号
	Logo          string     //公司logo
	Name          string     //公司名称
	ChargeUserIds []int64    //公司级别的部门主管uids
	Status        int        //公司状态,1正常 2禁用
	UpdatedAt     time.Time  //更新时间
	CreatedAt     time.Time  //创建时间
	DeletedAt     *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)
}