mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -14,6 +14,7 @@ from .user import *
|
||||
|
||||
from .sites import *
|
||||
from .domain import *
|
||||
from .binding import *
|
||||
|
||||
from .tasks import *
|
||||
from .logs import *
|
||||
|
||||
@@ -22,6 +22,9 @@ def addDomain(pid, name, port):
|
||||
}
|
||||
return mw.M('domain').insert(insert_data)
|
||||
|
||||
def getDomainByPid(pid):
|
||||
return mw.M('domain').where("pid=?", (pid,)).field(__FIELD).select()
|
||||
|
||||
|
||||
def deleteDomainId(domain_id):
|
||||
return mw.M('domain').where("id=?", (domain_id,)).delete()
|
||||
|
||||
Reference in New Issue
Block a user