Rainbond/db/mysql/dao/service.go
2020-09-27 16:27:46 +08:00

12 lines
314 B
Go

package dao
import "github.com/goodrain/rainbond/db/model"
func (t *TenantServicesDaoImpl) ListByAppID(appID string) ([]*model.TenantServices, error) {
var services []*model.TenantServices
if err := t.DB.Where("app_id=?", appID).Find(&services).Error; err != nil {
return nil, err
}
return services, nil
}