Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

complete adminverticle and add it to mainverticle,write the test #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 0 additions & 109 deletions social-vertex.iml

This file was deleted.

2 changes: 2 additions & 0 deletions src/main/java/cn/net/polyglot/MainVerticle.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public void start() {
vertx.deployVerticle("kt:cn.net.polyglot.verticle.friend.FriendVerticle", option);
vertx.deployVerticle("kt:cn.net.polyglot.verticle.search.SearchVerticle", option);
vertx.deployVerticle("kt:cn.net.polyglot.verticle.user.UserVerticle", option);
//添加的管理员verticle
vertx.deployVerticle("kt:cn.net.polyglot.verticle.admin.AdminVerticle", option);
vertx.deployVerticle("kt:cn.net.polyglot.verticle.publication.PublicationVerticle", option);
vertx.deployVerticle("kt:cn.net.polyglot.verticle.im.IMTcpServerVerticle", option);
vertx.deployVerticle("kt:cn.net.polyglot.verticle.im.IMServletVerticle", option);
Expand Down
17 changes: 17 additions & 0 deletions src/main/kotlin/cn/net/polyglot/config/Constants.kt
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,21 @@ const val CONTENT = "content"
const val PARAMETERS = "parameters"
const val ARTICLES = "articles"

//add lines for admin verticle
const val ADMIN="admin"
const val DOT_ADMIN=".admin"
const val SUPERADMIN="superadmin"
const val AUTHORITY="authority"
const val AUTHOR_SUPER="super"
const val AUTHOR_WRITEANDREAD="writeandread"
const val AUTHOR_READONLY="readonly"
const val REGISTADMIN="registadmin"
const val UPDATEADMIN="updateadmin"
const val LOGINADMIN="loginadmin"
const val LOGOUTADMIN="logoutadmin"
const val UNREGISTADMIN="unregistadmin"
const val LOGINSTATE="loginstate"

//内部使用的字符串
const val HTTP_METHOD = "HTTP_METHOD"
const val POST = "POST"
Expand All @@ -134,3 +149,5 @@ const val UPLOAD_FILES = "UPLOAD_FILES"
const val UPLOAD_FILE_NAMES = "UPLOAD_FILE_NAMES"

const val SENSITIVE_WORDS = "fuck shit caonima ganniniang qunima tmd falun qnm"


Loading