Пример #1
0
def initAdminAccount():
    req = CreateEmployeeAccountReq({
        "role_id":
        1,
        "account_name":
        "admin",
        "account_password":
        "******",
        # Employee
        "last_name":
        "Nguyễn Văn",
        "first_name":
        "Kim Hải",
        "phone":
        "0865248526",
        "email":
        "*****@*****.**",
        "address":
        "381 Nguyễn Kiệm",
        "gender":
        True,
        "image":
        "",
        "basic_rate":
        50000,
        "note":
        "Tài khoản admin đầu tiên của chương trình",
    })
    account, employee = AccountRep.CreateEmployeeAccount(req)
Пример #2
0
def CreateEmployeeAccount(req):
    create_employee_account = AccountRep.CreateEmployeeAccount(req)
    return create_employee_account