Giter Club home page Giter Club logo

dwz-server's Introduction

dwz-server

提供一个短链接服务

config目录下配置数据库,redis

##建表语句 CREATE TABLE shorturl_1 ( id int(11) NOT NULL AUTO_INCREMENT, long_url text NOT NULL COMMENT '长链接', head varchar(45) NOT NULL COMMENT '地址头', short_index varchar(45) NOT NULL COMMENT '短链接序号', random_str varchar(45) NOT NULL COMMENT '链接中随机字符串', PRIMARY KEY (id), UNIQUE KEY short_index_UNIQUE (short_index) ) ENGINE=InnoDB AUTO_INCREMENT=0 DEFAULT CHARSET=utf8;

##接口调用说明 ##获取短链接接口 curl -k -X POST
--header "Content-Type:application/json"
-d '{"longUrl": "http://econtract.12301e.com/cloud/viewsopen/contract_view_p.html?contractId=1710211230530074&companyId=C_32439&touristPhone=18911488028&handlerId=S_13722233333"}'
http://127.0.0.1:8309/dwz/query

##短链接转换为长链接接口 curl -k -X POST
--header "Content-Type:application/json"
-d '{"shortUrl": "http://1/ecwzzCdRt/6"}'
http://127.0.0.1:8309/dwz/transf

dwz-server's People

Contributors

zarawu avatar

Watchers

James Cloos avatar  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.