position.go 684 字节
package repository

import "opp/models"

type IPositionRepository interface {
	GetPositionById(companyId int) (v *models.Position, err error)
}

var _ IPositionRepository = (*PositionRepository)(nil)

type PositionRepository struct{}

func (r *PositionRepository) GetPositionById(id int) (v *models.Position, err error) {
	return models.GetPositionById(id)
}

type IUserPositionRepository interface {
	GetUserPositions(userId int64, companyId int64, v interface{}) (err error)
}

type UserPositionRepository struct{}

func (r *UserPositionRepository) GetUserPositions(userId int64, companyId int64, v interface{}) (err error) {
	return models.GetUserPositions(userId, companyId, v)
}