Documentation ¶
Index ¶
- func Init(wg *sync.WaitGroup)
- type AreaService
- func (as *AreaService) FreshAreas(ctx context.Context, req *server.Empty) (*server.Empty, error)
- func (as *AreaService) GetArea(ctx context.Context, req *server.GetAreaReq) (*server.GetAreaAck, error)
- func (as *AreaService) GetCities(ctx context.Context, req *server.GetCitiesReq) (*server.GetCitiesAck, error)
- func (as *AreaService) GetDistricts(ctx context.Context, req *server.GetDistrictsReq) (*server.GetDistrictsAck, error)
- func (as *AreaService) GetProvinces(ctx context.Context, req *server.GetProvincesReq) (*server.GetProvincesAck, error)
- func (as *AreaService) GetStreets(ctx context.Context, req *server.GetStreetsReq) (*server.GetStreetsAck, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AreaService ¶
type AreaService struct {
server.UnsafeAreaServiceServer
}
func (*AreaService) FreshAreas ¶
刷新区域
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)
获取街道列表
Click to show internal directories.
Click to hide internal directories.