Code Monkey home page Code Monkey logo

violence's Introduction

beego

violence

beego web framework , 功能: api搭建 ssh登录操作(已经停止更新,转revel框架开发)

Getting started

go get github.com/11101171/violence

go start

##dev 方式启动: bee run ##prod 方式启动: ./bin/run-9999.sh start

#配置


appname = violence
httpport = 9099
runmode = dev
HttpServerTimeOut = 10

## 数据库
使用mysql 

[dev] 开发环境
mysqluser = "admin"
mysqlpass = "xxx"
mysqlurls = "127.0.0.1"
mysqldb   = "violence"

[test] 测试环境
mysqluser = "admin"
mysqlpass = "xxx"
mysqlurls = "127.0.0.1"
mysqldb   = "violence"

[prod] 生产环境
mysqluser = "admin"
mysqlpass = "xxx"
mysqlurls = "127.0.0.1"
mysqldb   = "violence"
  • 初始化登录用户和密码都是:admin1

#测试 ####测试SSH

####测试API 配置JSNO文件


{
    "host":"http://www.baidu.com",
    "port":"80",
    "name":"rrr大搜车api",
    "lists":[
        {
            "folder":"css","sort":"1","api_params":[
                {
                    "id":"11",
                    "path":"/admin/server/encode",
                    "name":"测试",
                    "method":"GET",
                    "fileds":[
                            {"name":"username", "ftype":"text", "value":"zhangsan","lable":"用户名(不能小于3个字符)","placeholder":"如:张三"},
                             {"name":"uang", "ftype":"text", "value":"","lable":"xx用户名(不能小于3个字符)","placeholder":"如:**妈的"},
                            {"name":"passwrod", "ftype":"text", "value":"","lable":"密码","placeholder":"如:abc123"},
                            {"name":"sign", "ftype":"text", "value":"","lable":"秘钥","placeholder":"按加密按钮即可", "salt":"xxs", "ptype":"MD5","pway":"1"}
                     ]
                },
                 {
                    "id":"12",
                    "path":"/v",
                    "name":"认证接口",
                    "method":"POST",
                    "fileds":[
                            {"name":"bankCard", "ftype":"text", "value":"62261xxxxxxx","lable":"银行卡","placeholder":"如:6226197900918805"},
                             {"name":"name", "ftype":"text", "value":"张三","lable":"用户名(不能小于1个字符)","placeholder":"如:张三"},
                            {"name":"phone", "ftype":"text", "value":"1880444444","lable":"预存手机号","placeholder":"如:153000000"}
                     ]
                },
                {
                    "id":"13",
                    "path":"/xxx/v1/api",
                    "name":"验证接口",
                    "method":"POST",
                    "fileds":[
                            {"name":"server", "ftype":"text", "value":"verify","lable":"服务名","placeholder":""},
                             {"name":"password", "ftype":"text", "value":"123456","lable":"密码","placeholder":"如:张三"},
                            {"name":"sign", "ftype":"text", "value":"","lable":"秘钥","placeholder":"按加密按钮即可", "salt":"FFEF43Fexx", "ptype":"MD5","pway":"1"}
                     ]
                }
            ]
        },
        {
            "folder":"xxxxx","sort":"1","api_params":[]
        },
        {
            "folder":"yyyyyyy","sort":"1","api_params":[]
        }
    ]
}

violence's People

Contributors

11101171 avatar

Stargazers

 avatar

Watchers

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