Giter Site home page Giter Site logo

sso_server's Introduction

sso_server

  • 更新MySQL连接池
  • 连接redis
  • 逻辑调整
  • 生成GUID
  • 接入GRPC

g++ -std=c++11 /usr/local/mariadb/bin/mysql_config --cflags --libs -I/root/_test/libbcrypt/include -I/usr/local/mariadb/include -I/usr/include/mysql/include/jdbc -L/usr/local/lib -lcpp_redis -ltacopie -L/usr/lib64/mysql/lib64 -Wl,-rpath=/usr/lib64/mysql/lib64 -lhiredis -lbcrypt -lmysqlcppconn mysql.cpp DBPool.cpp -o mysql

g++ -std=c++11 -L/usr/local/lib pkg-config --libs protobuf grpc++ grpc -I/usr/include -lgrpc -lgpr -lgrpc++_reflection -lprotobuf -ldl -lpthread -lprotoc -lprotobuf-lite sso.grpc.pb.cc sso.pb.cc sso_server.cc -o sso_server

g++ -std=c++11 -L/usr/local/lib pkg-config --libs protobuf grpc++ grpc -I/usr/include -lgrpc -lgpr -lgrpc++_reflection -lprotobuf -ldl -lpthread -lprotoc -lprotobuf-lite sso.grpc.pb.cc sso.pb.cc sso_client.cc -o sso_client

g++ -std=c++11 /usr/local/mariadb/bin/mysql_config --cflags --libs pkg-config --libs protobuf grpc++ grpc -I/root/_test/libbcrypt/include -I/usr/local/mariadb/include -I/usr/include/mysql/include/jdbc -L/usr/local/lib -lcpp_redis -ltacopie -L/usr/lib64/mysql/lib64 -Wl,-rpath=/usr/lib64/mysql/lib64 -lhiredis -lbcrypt -lmysqlcppconn -lgrpc -lgpr -lgrpc++_reflection -lprotobuf -ldl -lpthread -lprotoc -lprotobuf-lite DBPool.cpp sso.grpc.pb.cc sso.pb.cc sso_server.cc -o sso_server

g++ -std=c++11 -L/usr/local/lib pkg-config --libs protobuf grpc++ grpc -I/usr/include -lgrpc -lgpr -lgrpc++_reflection -lprotobuf -ldl -lpthread -lprotoc -lprotobuf-lite sso.grpc.pb.cc sso.pb.cc sso_server.cc -o sso_server

protoc -I protos --grpc_out=. --plugin=protoc-gen-grpc=which grpc_cpp_plugin protos/sso.proto protoc -I protos --cpp_out=. protos/sso.proto

登录存储过程 CREATE PROCEDURE update_login (IN user_id INT(3), IN user_name VARCHAR(50), IN device_id VARCHAR(100), IN status INT(30)) BEGIN UPDATE t_login_his SET status=1 WHERE userID=user_id and deviceID <> device_id; INSERT INTO t_login_his (userID, userName, deviceID, status) SELECT user_id, user_name, device_id, status FROM dual WHERE not exists(select userID from t_login_his as a where a.userID = user_id and a.deviceID = device_id); UPDATE t_login_his SET status=0 WHERE userID=user_id and deviceID = device_id; END;

sso_server's People

Contributors

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