|
@@ -1,4 +1,4 @@ |
|
|
package implement |
|
|
|
|
|
|
|
|
package implement |
|
|
|
|
|
|
|
|
import ( |
|
|
import ( |
|
|
"code.fnuoos.com/zhimeng/model.git/src/super/dao" |
|
|
"code.fnuoos.com/zhimeng/model.git/src/super/dao" |
|
@@ -27,7 +27,7 @@ func (u UserAppDomainDb) GetAppDomainByHost(host string) (m *model.UserAppDomain |
|
|
return m, nil |
|
|
return m, nil |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
func (u UserAppDomainDb) GetAppDomainByType(masterId, kind string) (m *model.UserAppDomain, err error) { |
|
|
|
|
|
|
|
|
func (u UserAppDomainDb) GetAppDomainByType(kind, masterId string) (m *model.UserAppDomain, err error) { |
|
|
m = new(model.UserAppDomain) |
|
|
m = new(model.UserAppDomain) |
|
|
has, err := u.Db.Where("type =?", kind).And("uuid =?", masterId).Get(m) |
|
|
has, err := u.Db.Where("type =?", kind).And("uuid =?", masterId).Get(m) |
|
|
if err != nil { |
|
|
if err != nil { |
|
|