- 新增API:store/GetCorporationInfo,用于从执照号得到公司信息

This commit is contained in:
gazebo
2019-06-16 10:16:53 +08:00
parent f17f1e3b2c
commit c42e67529d
4 changed files with 31 additions and 3 deletions

View File

@@ -371,3 +371,17 @@ func (c *StoreController) ExportShopsHealthInfo() {
return retVal, "", err
})
}
// @Title 得到工商执照企业信息
// @Description 得到工商执照企业信息
// @Param token header string true "认证token"
// @Param licenceCode query string true "营业执照号"
// @Success 200 {object} controllers.CallResult
// @Failure 200 {object} controllers.CallResult
// @router /GetCorporationInfo [get]
func (c *StoreController) GetCorporationInfo() {
c.callGetCorporationInfo(func(params *tStoreGetCorporationInfoParams) (retVal interface{}, errCode string, err error) {
retVal, err = cms.GetCorporationInfo(params.Ctx, params.LicenceCode)
return retVal, "", err
})
}