Browse Source

更新

master
huangjiajun 1 month ago
parent
commit
2a0971f8eb
2 changed files with 9 additions and 0 deletions
  1. +1
    -0
      src/dao/applet_application_ad_space_list_dao.go
  2. +8
    -0
      src/implement/applet_application_ad_space_list_implement.go

+ 1
- 0
src/dao/applet_application_ad_space_list_dao.go View File

@@ -6,6 +6,7 @@ type AppletApplicationAdSpaceListDao interface {
GetAppletApplicationAdSpaceListByAdId(adId string) (medium *model.AppletApplicationAdSpaceList, err error) GetAppletApplicationAdSpaceListByAdId(adId string) (medium *model.AppletApplicationAdSpaceList, err error)
FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error) FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error)
FindAppletApplicationAdSpaceListByIds(id []string) (medium *[]model.AppletApplicationAdSpaceList, err error) FindAppletApplicationAdSpaceListByIds(id []string) (medium *[]model.AppletApplicationAdSpaceList, err error)
FindAppletApplicationAdSpaceListByAppidIds(id string) (medium *[]model.AppletApplicationAdSpaceList, err error)
FindAppletApplicationAdSpaceList(name, platform string, adType, state string, mediumId, page, limit int) (list []AppletApplicationAdSpaceListGroup, total int64, err error) FindAppletApplicationAdSpaceList(name, platform string, adType, state string, mediumId, page, limit int) (list []AppletApplicationAdSpaceListGroup, total int64, err error)
FindAllAppletApplicationAdSpaceListList(appId string) (list []model.AppletApplicationAdSpaceList, err error) FindAllAppletApplicationAdSpaceListList(appId string) (list []model.AppletApplicationAdSpaceList, err error)
} }


+ 8
- 0
src/implement/applet_application_ad_space_list_implement.go View File

@@ -23,6 +23,14 @@ func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByIds(id
} }
return medium, nil return medium, nil
} }
func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByAppidIds(id string) (medium *[]model.AppletApplicationAdSpaceList, err error) {
medium = new([]model.AppletApplicationAdSpaceList)
err = a.Db.Where("app_id=?", id).Find(medium)
if err != nil {
return nil, zhios_order_relate_logx.Error(err)
}
return medium, nil
}
func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error) { func (a AppletApplicationAdSpaceListDb) FindAppletApplicationAdSpaceListByMediumId(mediumId int) (medium *[]model.AppletApplicationAdSpaceList, err error) {


medium = new([]model.AppletApplicationAdSpaceList) medium = new([]model.AppletApplicationAdSpaceList)


Loading…
Cancel
Save