栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

py225基于python的家政管理系统设计

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

py225基于python的家政管理系统设计

开发环境

项目编号: py225基于python的家政管理系统设计
开发语言:Python
python框架:django
软件版本:python3.7/python3.8
数据库:mysql 5.7或更高版本
数据库工具:Navicat11
开发软件:PyCharm/vs code

项目介绍

随着大家生活水平的提高,在生活中家政服务变得越来越受大家的欢迎,如何来选择一个好的员工就也变得越来越重要,如何让人们足不出户就能找到自己满意的家政人员是本网站要解决的主要问题,我们建立一个家政公司信息系统来实现需求者从网站中快速的获取正确真实的家政服务信息的手段,所以开发一个友好的家政公司信息系统就显得非常重要。
目前,大多数的寻找合适的家政人员还停留在去家政公司资讯并选择的传统方式,这样的方式浪费了大量的时间,也不能很好的了解家政人员的服务水平和状态,利用互联网建立一个家政公司信息系统来寻找符合自己条件的家政人员非常的方便,有更多的选择性,由于家政公司信息系统由第三方来运营,所以平台上提供你的家政人员信息都是客观的描述和评价,不会遭到家政公司的夸大。

系统截图





关键代码
def xuqiuzhongxin_register(request):
    if request.method in ["POST", "GET"]:
        msg = {'code': normal_code, "msg": mes.normal_code}
        req_dict = request.session.get("req_dict")

        error = xuqiuzhongxin.createbyreq(xuqiuzhongxin, xuqiuzhongxin, req_dict)
        if error != None:
            msg['code'] = crud_error_code
            msg['msg'] = error
        return JsonResponse(msg)

def xuqiuzhongxin_login(request):
    if request.method in ["POST", "GET"]:
        msg = {'code': normal_code, "msg": mes.normal_code}
        req_dict = request.session.get("req_dict")

        datas = xuqiuzhongxin.getbyparams(xuqiuzhongxin, xuqiuzhongxin, req_dict)
        if not datas:
            msg['code'] = password_error_code
            msg['msg'] = mes.password_error_code
            return JsonResponse(msg)

        req_dict['id'] = datas[0].get('id')
        return Auth.authenticate(Auth, xuqiuzhongxin, req_dict)


def xuqiuzhongxin_logout(request):
    if request.method in ["POST", "GET"]:
        msg = {
            "msg": "登出成功",
            "code": 0
        }

        return JsonResponse(msg)


def xuqiuzhongxin_resetPass(request):
    '''
    '''
    if request.method in ["POST", "GET"]:
        msg = {"code": normal_code, "msg": mes.normal_code}

        req_dict = request.session.get("req_dict")

        error = xuqiuzhongxin.updatebyparams(xuqiuzhongxin,xuqiuzhongxin, req_dict)

        if error != None:
            msg['code'] = crud_error_code
            msg['msg'] = error
        return JsonResponse(msg)



def xuqiuzhongxin_session(request):
    '''
    '''
    if request.method in ["POST", "GET"]:
        msg = {"code": normal_code,"msg": mes.normal_code, "data": {}}

        req_dict={"id":request.session.get('params').get("id")}
        msg['data']  = xuqiuzhongxin.getbyparams(xuqiuzhongxin, xuqiuzhongxin, req_dict)[0]

        return JsonResponse(msg)
转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/971431.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号