This commit is contained in:
Mr Chen
2024-11-07 03:50:50 +08:00
parent e994cd80f1
commit 881facdfa8
4 changed files with 77 additions and 1 deletions
+1
View File
@@ -14,6 +14,7 @@ from .user import *
from .sites import *
from .domain import *
from .binding import *
from .tasks import *
from .logs import *
+3
View File
@@ -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()