1
This commit is contained in:
@@ -151,6 +151,22 @@ func (c *StoreController) CreateStore() {
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 打印机授权创建京西门店(除门店名称和登录授权电话真实有效其他使用默认值)
|
||||
// @Description 打印机授权创建京西门店
|
||||
// @Param payload formData string true "json数据,store对象"
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /CreateStore2Print [post]
|
||||
func (c *StoreController) CreateStore2Print() {
|
||||
c.callCreateStore2Print(func(params *tStoreCreateStore2PrintParams) (retVal interface{}, errCode string, err error) {
|
||||
store := &cms.StoreExt{}
|
||||
if err = utils.UnmarshalUseNumber([]byte(params.Payload), store); err == nil {
|
||||
retVal, err = cms.CreateStore(params.Ctx, store, params.Ctx.GetUserName())
|
||||
}
|
||||
return retVal, "", err
|
||||
})
|
||||
}
|
||||
|
||||
// @Title 商户创建京西门店
|
||||
// @Description 商户创建京西门店
|
||||
// @Param token header string true "认证token"
|
||||
|
||||
@@ -2313,6 +2313,15 @@ func init() {
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"],
|
||||
web.ControllerComments{
|
||||
Method: "CreateStore2Print",
|
||||
Router: `/CreateStore2Print`,
|
||||
AllowHTTPMethods: []string{"post"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
|
||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:StoreController"],
|
||||
web.ControllerComments{
|
||||
Method: "CreateStoreByUser",
|
||||
|
||||
Reference in New Issue
Block a user