This commit is contained in:
苏尹岚
2020-12-25 10:53:05 +08:00
parent 0210024dc4
commit e3c422c5a3
5 changed files with 41 additions and 0 deletions

View File

@@ -1457,3 +1457,7 @@ func RefreshDropShippingJob(ctx *jxcontext.Context) (err error) {
task.GetID()
return err
}
func AddressDistinguish(ctx *jxcontext.Context, address string) (err error) {
return err
}

View File

@@ -318,3 +318,16 @@ type OilInfo struct {
OilgunCodes []string `json:"oilgunCodes"`
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"},
}
}

View File

@@ -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购买
// @Description 查询所有快递物流信息
// @Param token header string true "认证token"

View File

@@ -36,6 +36,7 @@ func Init() {
orm.RegisterModel(&model.MtMember{})
orm.RegisterModel(&model.OperateEvent{})
orm.RegisterModel(&model.NewConfig{}, &legacymodel.Config{})
orm.RegisterModel(&model.AddressDistinguish{})
// create table
orm.RunSyncdb("default", false, true)
}

View File

@@ -331,6 +331,15 @@ func init() {
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.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.ControllerComments{
Method: "AuditJob",