entity

package
v0.0.0-...-01f7578 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cities

type Cities []*City

func (Cities) GetProvinceIds

func (c Cities) GetProvinceIds() []int

type City

type City struct {
	Id         int    `json:"id"`
	ProvinceId int    `json:"province_id"`
	Name       string `json:"name"`
}

type CityProfile

type CityProfile struct {
	Id           int    `json:"id"`
	Name         string `json:"name"`
	ProvinceName string `json:"province_name"`
	ProvinceId   int    `json:"province_id"`
}

func (CityProfile) FromCity

func (CityProfile) FromCity(in City, provinceName string) CityProfile

type Province

type Province struct {
	Id   int    `json:"id"`
	Name string `json:"name"`
}

Jump to

Keyboard shortcuts

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