chance.go
336 字节
package repository
import "opp/models"
type IChanceRepository interface {
GetChanceById(id int64) (v *models.Chance, err error)
}
var _ IChanceRepository = (*ChanceRepository)(nil)
type ChanceRepository struct{}
func (r *ChanceRepository) GetChanceById(id int64) (v *models.Chance, err error) {
return models.GetChanceById(id)
}