├── .env ├── .gitignore ├── Dockerfile ├── LICENSE ├── README.md ├── docker-compose.yaml ├── docker-pg-init-scripts └── init.sql ├── go.mod ├── go.sum ├── handler ├── auth.go ├── handler.go ├── pair.go └── user.go ├── lib ├── auth │ └── auth.go ├── config │ └── config.go ├── constant │ └── constant.go ├── httputil │ └── httputil.go ├── lua │ └── lua.go ├── middleware │ └── middleware.go └── validate │ └── validate.go ├── main.go ├── main_test.go ├── model ├── pairs.go └── user.go ├── schema ├── create_db.sql ├── create_fk.sql ├── create_table.sql ├── grant_table_privilege.sql ├── readme.md ├── setup_db.sql └── testing_data.sql └── swagger └── dist ├── favicon-16x16.png ├── favicon-32x32.png ├── index.html ├── oauth2-redirect.html ├── swagger-ui-bundle.js ├── swagger-ui-bundle.js.map ├── swagger-ui-standalone-preset.js ├── swagger-ui-standalone-preset.js.map ├── swagger-ui.css ├── swagger-ui.css.map ├── swagger-ui.js ├── swagger-ui.js.map └── swagger.json /.env: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/.env -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/.gitignore -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/Dockerfile -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/docker-compose.yaml -------------------------------------------------------------------------------- /docker-pg-init-scripts/init.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/docker-pg-init-scripts/init.sql -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/go.sum -------------------------------------------------------------------------------- /handler/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/handler/auth.go -------------------------------------------------------------------------------- /handler/handler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/handler/handler.go -------------------------------------------------------------------------------- /handler/pair.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/handler/pair.go -------------------------------------------------------------------------------- /handler/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/handler/user.go -------------------------------------------------------------------------------- /lib/auth/auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/auth/auth.go -------------------------------------------------------------------------------- /lib/config/config.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/config/config.go -------------------------------------------------------------------------------- /lib/constant/constant.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/constant/constant.go -------------------------------------------------------------------------------- /lib/httputil/httputil.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/httputil/httputil.go -------------------------------------------------------------------------------- /lib/lua/lua.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/lua/lua.go -------------------------------------------------------------------------------- /lib/middleware/middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/middleware/middleware.go -------------------------------------------------------------------------------- /lib/validate/validate.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/lib/validate/validate.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/main.go -------------------------------------------------------------------------------- /main_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/main_test.go -------------------------------------------------------------------------------- /model/pairs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/model/pairs.go -------------------------------------------------------------------------------- /model/user.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/model/user.go -------------------------------------------------------------------------------- /schema/create_db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/create_db.sql -------------------------------------------------------------------------------- /schema/create_fk.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/create_fk.sql -------------------------------------------------------------------------------- /schema/create_table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/create_table.sql -------------------------------------------------------------------------------- /schema/grant_table_privilege.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/grant_table_privilege.sql -------------------------------------------------------------------------------- /schema/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/readme.md -------------------------------------------------------------------------------- /schema/setup_db.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/setup_db.sql -------------------------------------------------------------------------------- /schema/testing_data.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/schema/testing_data.sql -------------------------------------------------------------------------------- /swagger/dist/favicon-16x16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/favicon-16x16.png -------------------------------------------------------------------------------- /swagger/dist/favicon-32x32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/favicon-32x32.png -------------------------------------------------------------------------------- /swagger/dist/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/index.html -------------------------------------------------------------------------------- /swagger/dist/oauth2-redirect.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/oauth2-redirect.html -------------------------------------------------------------------------------- /swagger/dist/swagger-ui-bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui-bundle.js -------------------------------------------------------------------------------- /swagger/dist/swagger-ui-bundle.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui-bundle.js.map -------------------------------------------------------------------------------- /swagger/dist/swagger-ui-standalone-preset.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui-standalone-preset.js -------------------------------------------------------------------------------- /swagger/dist/swagger-ui-standalone-preset.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui-standalone-preset.js.map -------------------------------------------------------------------------------- /swagger/dist/swagger-ui.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui.css -------------------------------------------------------------------------------- /swagger/dist/swagger-ui.css.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui.css.map -------------------------------------------------------------------------------- /swagger/dist/swagger-ui.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui.js -------------------------------------------------------------------------------- /swagger/dist/swagger-ui.js.map: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger-ui.js.map -------------------------------------------------------------------------------- /swagger/dist/swagger.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/KennyChenFight/dcard-simple-demo/HEAD/swagger/dist/swagger.json --------------------------------------------------------------------------------