aa
This commit is contained in:
@@ -1457,3 +1457,7 @@ func RefreshDropShippingJob(ctx *jxcontext.Context) (err error) {
|
|||||||
task.GetID()
|
task.GetID()
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func AddressDistinguish(ctx *jxcontext.Context, address string) (err error) {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|||||||
@@ -318,3 +318,16 @@ type OilInfo struct {
|
|||||||
OilgunCodes []string `json:"oilgunCodes"`
|
OilgunCodes []string `json:"oilgunCodes"`
|
||||||
OilCode string `json:"oilCode"`
|
OilCode string `json:"oilCode"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type AddressDistinguish struct {
|
||||||
|
ModelIDCUL
|
||||||
|
|
||||||
|
Address string `json:"address"`
|
||||||
|
Info string `orm:"type(text)" json:"info"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *AddressDistinguish) TableUnique() [][]string {
|
||||||
|
return [][]string{
|
||||||
|
[]string{"Address"},
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@@ -331,6 +331,20 @@ func (c *JobController) GetDeliveryDetail() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @Title 地址识别 (txcloud购买)
|
||||||
|
// @Description 地址识别
|
||||||
|
// @Param token header string true "认证token"
|
||||||
|
// @Param address query string false "完整地址"
|
||||||
|
// @Success 200 {object} controllers.CallResult
|
||||||
|
// @Failure 200 {object} controllers.CallResult
|
||||||
|
// @router /AddressDistinguish [post]
|
||||||
|
func (c *JobController) AddressDistinguish() {
|
||||||
|
c.callAddressDistinguish(func(params *tJobAddressDistinguishParams) (retVal interface{}, errCode string, err error) {
|
||||||
|
|
||||||
|
return retVal, "", err
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// @Title 查询所有快递物流信息 (txcloud购买)
|
// @Title 查询所有快递物流信息 (txcloud购买)
|
||||||
// @Description 查询所有快递物流信息
|
// @Description 查询所有快递物流信息
|
||||||
// @Param token header string true "认证token"
|
// @Param token header string true "认证token"
|
||||||
|
|||||||
@@ -36,6 +36,7 @@ func Init() {
|
|||||||
orm.RegisterModel(&model.MtMember{})
|
orm.RegisterModel(&model.MtMember{})
|
||||||
orm.RegisterModel(&model.OperateEvent{})
|
orm.RegisterModel(&model.OperateEvent{})
|
||||||
orm.RegisterModel(&model.NewConfig{}, &legacymodel.Config{})
|
orm.RegisterModel(&model.NewConfig{}, &legacymodel.Config{})
|
||||||
|
orm.RegisterModel(&model.AddressDistinguish{})
|
||||||
// create table
|
// create table
|
||||||
orm.RunSyncdb("default", false, true)
|
orm.RunSyncdb("default", false, true)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -331,6 +331,15 @@ func init() {
|
|||||||
Filters: nil,
|
Filters: nil,
|
||||||
Params: nil})
|
Params: nil})
|
||||||
|
|
||||||
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
||||||
|
beego.ControllerComments{
|
||||||
|
Method: "AddressDistinguish",
|
||||||
|
Router: `/AddressDistinguish`,
|
||||||
|
AllowHTTPMethods: []string{"post"},
|
||||||
|
MethodParams: param.Make(),
|
||||||
|
Filters: nil,
|
||||||
|
Params: nil})
|
||||||
|
|
||||||
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"] = append(beego.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:JobController"],
|
||||||
beego.ControllerComments{
|
beego.ControllerComments{
|
||||||
Method: "AuditJob",
|
Method: "AuditJob",
|
||||||
|
|||||||
Reference in New Issue
Block a user