GithubHelp home page GithubHelp logo

commoncurd's Introduction

commoncurd

万能后台项目
详情见文档:commoncurd.docx

公共查询接口(支持分页、支持跨库)(/common/getDataByViewName)

接口调用:http://localhost:8080/common/getDataByViewName?viewName=COMMON_TEST

公共增加/修改接口(支持多表修改、支持事务、支持跨库)(/common/addOrUpdateDataByTableNames)

接口调用:http://localhost:8080/common/addOrUpdateDataByTableNames
参数样例:
{ "paramList": [ { "tableName": 'cuihui_test', "primaryKey": 'sid', "cols": { "sid": "983E3898F0DA452D8C585A73B7DC7962", "sname": "cudeletei123hui", "age": "123" }, "seqName": "" }, { "tableName": 'cuihui_test', "primaryKey": 'sid', "cols": { "sid": "", "sname": "cui123hui", "age": "123" }, "seqName": "SEQ_RS" } ] }

公共删除接口(支持多表删除、支持事务、支持跨库)(/common/deleteDataByTableNames)

接口调用:http://localhost:8080/common/deleteDataByTableNames
参数样例:
{ "deleteList":[ { "tableName": 'cuihui_test', "primaryKey": 'sid', "primaryKeyVal": ['3533937','12'], "deleteType": "1", "flagCol": "age", "flagColVal": "11" }, { "tableName": 'cuihui_test', "primaryKey": 'sid', "primaryKeyVal": ['85D4BFDB237D47A7BA471A39D4EDE607','12'], "deleteType": "1", "flagCol": "age", "flagColVal": "11" } ] }

公共增删改接口(支持多表、支持事务、支持跨库)(/common/addOrUpdateOrDeleteDataByTableNames)

接口调用:http://localhost:8080/common/addOrUpdateOrDeleteDataByTableNames
参数样例:
{ "paramList": [ { "tableName": 'cuihui_test', "primaryKey": 'sid', "cols": { "sid": "asdasdasdasd", "sname": "aaa", "age": "aaaaaaa" }, "seqName": "" }, { "tableName": 'cuihui_test', "primaryKey": 'sid', "cols": { "sid": "2222222", "sname": "bbb", "age": "bbbbbbbbbbbbbbbbbbbbbbbb" }, "seqName": "" } ], "deleteList":[ { "tableName": 'cuihui_test', "primaryKey": 'sid', "primaryKeyVal": ['2222222','12'], "deleteType": "1", "flagCol": "age", "flagColVal": "11" }, { "tableName": 'cuihui_test', "primaryKey": 'sid', "primaryKeyVal": ['85D4BFDB237D47A7BA471A39D4EDE607','12'], "deleteType": "1", "flagCol": "age", "flagColVal": "11" } ] }

公共接口-外部接口调用(url支持get/post请求)(/common/executeExternalAPI)

接口调用:http://localhost:8080/common/executeExternalAPI
参数样例:
{ "urlID" : "aoudbtn", "urlParam" : { // url对应的参数 } }

commoncurd's People

Contributors

cuihui2012 avatar

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.