Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Multiplatform

This directory contains the code for the multiplatform API. The API is designed to support multiple platforms, such as web, mobile, and desktop.

Or creates the Web, Android, and iOS client interface directory to handle interfaces separately

Usage

  • http: The directory contains http service test code
  • multiplatform*: The directory stores common codes for all platforms. You can also create them by client, such as web, android, and ios
  • proto: The proto file is stored in the directory
  • services: The directory stores the service code generated by the proto file
  • web*: Store the web client interface code
  • android*: Store the android client interface code
  • ios*: Stores the ios client interface code
  • admin*/backend*: The admin/backend directory is used to store back-end management interfaces. You can create the admin/backend directory to refine the directory structure

1. api Directory

  • ** Recommendation ** : Create subdirectories' android ', 'ios' and' web 'under the' api 'directory to store the backend interface definitions of each platform respectively.
  • ** Reason ** : This ensures that interface definitions for different platforms are managed separately to avoid confusion.
./
├─api
│  └─v1
│      ├─proto
│      │  ├─helloworld
│      │  └─secondworld
│      ├─services
│      │  ├─helloworld
│      │  └─secondworld
│      ├─android
│      │  ├─proto
│      │  │  ├─auth
│      │  │  └─user
│      │  └─services
│      │      ├─auth
│      │      └─user
│      ├─ios
│      │  ├─proto
│      │  │  ├─auth
│      │  │  └─user
│      │  └─services
│      │      ├─auth
│      │      └─user
│      └─web
│          ├─proto
│          │  ├─auth
│          │  └─user
│          └─services
│              ├─auth
│              └─user

2. internal Directory

  • ** Recommendation ** : Create subdirectories' android ', 'ios' and' web 'under the' internal 'directory to store the implementation of back-end interfaces of each platform respectively.
  • ** Reason ** : This ensures that the implementation of different platforms is managed separately and avoids confusion.
./
├─internal
│  ├─bootstrap
│  ├─configs
│  ├─mods
│  │  ├─helloworld
│  │  │  ├─biz
│  │  │  ├─dal
│  │  │  ├─dto
│  │  │  ├─server
│  │  │  └─service
│  │  ├─secondworld
│  │  │  ├─biz
│  │  │  ├─dal
│  │  │  ├─dto
│  │  │  ├─server
│  │  │  └─service
│  │  ├─android
│  │  │  ├─auth
│  │  │  │  ├─biz
│  │  │  │  ├─dal
│  │  │  │  ├─dto
│  │  │  │  ├─server
│  │  │  │  └─service
│  │  │  └─user
│  │  │      ├─biz
│  │  │      ├─dal
│  │  │      ├─dto
│  │  │      ├─server
│  │  │      └─service
│  │  ├─ios
│  │  │  ├─auth
│  │  │  │  ├─biz
│  │  │  │  ├─dal
│  │  │  │  ├─dto
│  │  │  │  ├─server
│  │  │  │  └─service
│  │  │  └─user
│  │  │      ├─biz
│  │  │      ├─dal
│  │  │      ├─dto
│  │  │      ├─server
│  │  │      └─service
│  │  └─web
│  │      ├─auth
│  │      │  ├─biz
│  │      │  ├─dal
│  │      │  ├─dto
│  │      │  ├─server
│  │      │  └─service
│  │      └─user
│  │          ├─biz
│  │          ├─dal
│  │          ├─dto
│  │          ├─server
│  │          └─service