审查视图

pkg/domain/company.go 720 字节
tangxvhui authored
1 2 3 4 5
package domain

import "time"

type Company struct {
庄敏学 authored
6 7 8 9 10 11 12 13
	Id            int64      //公司编号
	Logo          string     //公司logo
	Name          string     //公司名称
	ChargeUserIds []int64    //公司级别的部门主管uids
	Status        int        //公司状态,1正常 2禁用
	UpdatedAt     time.Time  //更新时间
	CreatedAt     time.Time  //创建时间
	DeletedAt     *time.Time //删除时间
tangxvhui authored
14 15 16
}

type CompanyRepository interface {
tangxvhui authored
17 18
	Insert(company *Company) (*Company, error)
	Update(Company *Company) (*Company, error)
tangxvhui authored
19 20
	Remove(company *Company) (*Company, error)
	FindOne(queryOptions map[string]interface{}) (*Company, error)
tangxvhui authored
21
	Find(queryOptions map[string]interface{}) (int, []*Company, error)
tangxvhui authored
22
}