Giter Site home page Giter Site logo

lims_project's Introduction

实验室信息管理系统(LIMS)

Laboratory Information Management System

服务启动

virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt
python run_apps.py

服务依赖

  • MariaDB
  • Redis

项目依赖

pip install Flask-RESTful
pip install Flask-HTTPAuth
pip install Flask-SQLAlchemy
pip install sqlacodegen==1.1.6
pip install gunicorn
pip install eventlet
pip install mysqlclient
pip install redis
pip install requests
pip install future
pip install supervisor

接口定义

postman接口文件 lims_project.postman_collection.json

lims project postman png

注意调试模式影响缩进

  1. DEBUG = True indent=2
  2. DEBUG = False indent=4

动作 - 成功(200)

# 创建
{
    "id": 8,
    "message": "创建成功",
    "result": true
}

# 更新
{
    "message": "更新成功",
    "result": true
}

# 删除
{
    "message": "删除成功",
    "result": true
}

动作 - 失败(400)

{
    "message": "更新失败",
    "result": false
}

查询 - 成功(200)

# 详情
{
    "customer": {
        "company_address": "company address",
        "company_email": "",
        "company_fax": "021-62345678",
        "company_name": "company name put",
        "company_site": "http://www.baidu.com",
        "company_tel": "021-62345678",
        "company_type": 1,
        "create_time": "2019-09-27T06:21:33",
        "id": "1",
        "update_time": "2019-09-27T16:48:30"
    }
}

# 列表 - 有记录
{
    "customer": [
        {
            "company_address": "company address",
            "company_email": "",
            "company_fax": "021-62345678",
            "company_name": "company name 2",
            "company_site": "http://www.baidu.com",
            "company_tel": "021-62345678",
            "company_type": 1,
            "create_time": "2019-09-27T07:30:10",
            "id": "7",
            "update_time": "2019-09-27T07:30:10"
        },
        {
            "company_address": "company address",
            "company_email": "",
            "company_fax": "021-62345678",
            "company_name": "company name 1",
            "company_site": "http://www.baidu.com",
            "company_tel": "021-62345678",
            "company_type": 1,
            "create_time": "2019-09-27T06:41:30",
            "id": "6",
            "update_time": "2019-09-27T06:41:30"
        }
    ],
    "total": 7
}

# 列表 - 空记录
{
    "customer": [],
    "total": 0
}

查询 - 失败(404)

{
    "message": "没有记录",
    "result": false
}

{
    "message": "已经删除",
    "result": false
}

查询 - 失败(400)

{
    "message": "参数错误",
    "result": false
}

路径错误(404)

{
    "message": "路径错误",
    "result": false
}

权限拒绝(403)

{
    "message": "权限拒绝",
    "result": false
}

服务错误(500)

{
    "message": "内部错误",
    "result": false
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.