- initData.InitPlace.
This commit is contained in:
23
controllers/init_data.go
Normal file
23
controllers/init_data.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package controllers
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/business/jxstore/initdata"
|
||||
"github.com/astaxie/beego"
|
||||
)
|
||||
|
||||
type InitDataController struct {
|
||||
beego.Controller
|
||||
}
|
||||
|
||||
// @Title 初始化place信息
|
||||
// @Description 初始化place信息,要求:jde_city, jde_district, ebde_places, mtpsdeliveryprice
|
||||
// @Param token header string true "认证token"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /InitPlace [post]
|
||||
func (c *InitDataController) InitPlace() {
|
||||
c.callInitPlace(func(params *tInitdataInitPlaceParams) (retVal interface{}, errCode string, err error) {
|
||||
err = initdata.InitPlace(params.Ctx)
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user