company.go 367 字节
package repository

import "opp/models"

type ICompanyRepository interface {
	GetCompanyById(companyId int64) (v *models.Company, err error)
}

var _ ICompanyRepository = (*CompanyRepository)(nil)

type CompanyRepository struct{}

func (r *CompanyRepository) GetCompanyById(companyId int64) (v *models.Company, err error) {
	return models.GetCompanyById(companyId)
}