mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
12 lines
314 B
Go
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
|
|
}
|