mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-05 21:27:47 +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
|
|
}
|