commend.go
455 字节
package repository
import "opp/models"
type ICommendRepository interface {
GetCommends(companyId int64, llastId int, pageSize int) (v []*models.Commend, total int, err error)
}
var _ ICommendRepository = (*CommendRepository)(nil)
type CommendRepository struct{}
func (r *CommendRepository) GetCommends(companyId int64, lastId int, pageSize int) (v []*models.Commend, total int, err error) {
return models.GetCommends(companyId, lastId, pageSize)
}