grpc

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 24, 2023 License: MulanPSL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(wg *sync.WaitGroup)

Types

type AreaService

type AreaService struct {
	server.UnsafeAreaServiceServer
}

func (*AreaService) FreshAreas

func (as *AreaService) FreshAreas(ctx context.Context, req *server.Empty) (*server.Empty, error)

刷新区域

func (*AreaService) GetArea

func (as *AreaService) GetArea(ctx context.Context, req *server.GetAreaReq) (*server.GetAreaAck, error)

获取指定区域

func (*AreaService) GetCities

func (as *AreaService) GetCities(ctx context.Context, req *server.GetCitiesReq) (*server.GetCitiesAck, error)

获取城市列表

func (*AreaService) GetDistricts

func (as *AreaService) GetDistricts(ctx context.Context, req *server.GetDistrictsReq) (*server.GetDistrictsAck, error)

获取区县列表

func (*AreaService) GetProvinces

func (as *AreaService) GetProvinces(ctx context.Context, req *server.GetProvincesReq) (*server.GetProvincesAck, error)

获取省份列表

func (*AreaService) GetStreets

func (as *AreaService) GetStreets(ctx context.Context, req *server.GetStreetsReq) (*server.GetStreetsAck, error)

获取街道列表

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL