You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
553 B
25 lines
553 B
package address
|
|
|
|
import (
|
|
"github.com/towgo/towgo/dao/ormDriver/xormDriver"
|
|
"github.com/towgo/towgo/towgo"
|
|
)
|
|
|
|
func init() {
|
|
xormDriver.Sync2(new(Address), new(Area))
|
|
towgo.NewCRUDJsonrpcAPI("/address", Address{}, []Address{}).RegAPI()
|
|
towgo.NewCRUDJsonrpcAPI("/area", Area{}, []Area{}).RegAPI()
|
|
//towgo.SetFunc("/area", AreaInfo)
|
|
}
|
|
|
|
type AreaResult struct {
|
|
AreaData [][][]Area `json:"areaData"`
|
|
CityData [][]Area `json:"cityData"`
|
|
ProvinceData []Area `json:"provinceData"`
|
|
}
|
|
|
|
/*func AreaInfo(rpc towgo.JsonRpcConnection) {
|
|
|
|
}
|
|
*/
|