分销商城(微商城)接口项目

district_service.go 209B

1234567891011
  1. package service
  2. import (
  3. "wsc-go/models"
  4. )
  5. func GetDistrictsByUpid(id int64) (dis []*models.District, err error) {
  6. err = readUserDb.Model(&models.District{}).Where("upid=?", id).Find(&dis).Error
  7. return
  8. }