After the study of the first five articles, the comprehensive article is combined with the previous one, and a project is used to integrate and understand.

The source address

  • The source address
  • Comprehensive micro service project of Airentals

Project introduction

This project, I fork github an open source project, because it happens to be go-Micro-v2, I upgrade to V3 for the comprehensive article.

Technology stack

golang + docker + consul + grpc + protobuf + beego + mysql + redis + fastDFS + nginx

catalogue

├─ DeleteSession │ ├─ Clear Session ├─ GetArea │ ├─ Get Local Information Service ├─ GetImageCd │ ├─ Get VERIFICATION Code Picture Service ├─ GetSession │ ├─ Get Session Information Service ├─ GetSmscd │ ├─ Get SMS Information Service ├─ GetUserHouses │ ├─ GetUser Details Service ├─ Web │ ├ ─ ─ the conf project configuration file │ │ ├ ─ ─ app. Conf │ │ ├ ─ ─ data. SQL │ │ └ ─ ─ redis. Conf │ ├ ─ ─ handler │ │ └ ─ ─ handler. Go to configure routing │ ├ ─ ─ HTML Project static file │ ├ ─ ─ main. Go main function │ ├ ─ ─ model database model │ │ └ ─ ─ models. Go │ ├ ─ ─ plugin. Go │ ├ ─ ─ for server sh │ └ ─ ─ utils │ project tools used in the function ├─ Config.Go │ ├─ error. Go │ ├─ PostAvatar │ ├─ PostHouses │ ├─ PostHousesImage │ ├ ─ ─ send pictures (upload) housing ├ ─ ─ PostLogin │ ├ ─ ─ logging service messages sent ├ ─ ─ PostRet │ ├ ─ ─ find registration information service ├ ─ ─ PostUserAuth │ ├ ─ ─ ├─ PutUserInfo │ ├─ Send User Information ├─ GetUserAuth │ ├─ GetUser Information ├─ PostHousesImage │ ├─ Send House Picture Service │ ├── GetHouse Details │ ├─ GetIndex │ ├─ GetHouse Details │ ├─ GetHouses │ ├─ GetHouse Details │ ├─ GetHouse Details │ ├─ GetHouse Details │ ├─ GetIndex │ ├─ ├─ GetUserOrder │ ├─ Get Landlord/Tenant Order Information ├─ PutOrders │ ├─ update Landlord Approve/Reject Order ├─ PutComments │ ├─ update User Evaluation Order Information ├─ README.md

Partial renderings



Refer to the link

  • Refer to the project source code