Documentation ¶
Index ¶
- func CreateUser(trx *sqlx.Tx, id int64, username, password string) (err error)
- func GetCityByIp(ipStr string) (*geoip2.City, error)
- func GetProvince(trx *sqlx.Tx, id int) (*models.Province, error)
- func GetUserById(trx *sqlx.Tx, id int64) (*models.User, error)
- func HasUser(trx *sqlx.Tx, user *models.User) (bool, error)
- func ListProvinces(trx *sqlx.Tx) ([]*models.Province, error)
- func ListUsers(trx *sqlx.Tx) (*[]models.User, error)
- type CityDao
- type ProvinceDao
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCityByIp ¶
Types ¶
type ProvinceDao ¶
func (*ProvinceDao) GetProvince ¶
func (provinceDao *ProvinceDao) GetProvince(id int) (*models.Province, error)
func (*ProvinceDao) ListProvinces ¶
func (provinceDao *ProvinceDao) ListProvinces() (*[]models.Province, error)
Click to show internal directories.
Click to hide internal directories.