|
@@ -30,11 +30,9 @@ func NewApi() Api {
|
|
|
|
|
|
// provinceList
|
|
|
// @Tags 公共接口
|
|
|
-// @BasePath /clodLogistic/app/api/v1
|
|
|
// @Summary 省市区列表
|
|
|
// @Success 200 {object} commonsrv.ProvinceListRespVO "成功响应的结构体"
|
|
|
// @Accept application/json
|
|
|
-// @Authorization
|
|
|
// @Router /app/common/provinceList [get]
|
|
|
func (api Api) provinceList(c *gin.Context) {
|
|
|
srv := commonsrv.NewCommonService(dao.NewDataStore(global.CommonConnectRepoInst.StoreDB))
|
|
@@ -48,13 +46,11 @@ func (api Api) provinceList(c *gin.Context) {
|
|
|
|
|
|
// sensorDataList
|
|
|
// @Tags 公共接口
|
|
|
-// @BasePath /clodLogistic/app/api/v1
|
|
|
// @Summary 设备数据列表
|
|
|
// @Success 200 {object} swagger.PageListResponse "成功响应的结构体"
|
|
|
-// @Param req body swagger.SnDataListReqVO true "请求参数"
|
|
|
+// @Param req body swagger.SnDataListReqVO true "请求参数"
|
|
|
// @Accept application/json
|
|
|
-// @Authorization Bearer
|
|
|
-// @Router /app/address/add [post]
|
|
|
+// @Router /app/common/sensorDataList [get]
|
|
|
func (api Api) sensorDataList(c *gin.Context) {
|
|
|
req := devicesrv.SnDataListReqVO{}
|
|
|
if err := c.BindJSON(&req); err != nil {
|
|
@@ -78,12 +74,10 @@ func (api Api) sensorDataList(c *gin.Context) {
|
|
|
|
|
|
// logisticList
|
|
|
// @Tags 公共接口
|
|
|
-// @BasePath /clodLogistic/app/api/v1
|
|
|
// @Summary 物流公司列表
|
|
|
// @Success 200 {object} swagger.PageListResponse "成功响应的结构体"
|
|
|
// @Param req body swagger.LogisticListReqVO true "请求参数"
|
|
|
// @Accept application/json
|
|
|
-// @Authorization Bearer
|
|
|
// @Router /app/common/logisticList [get]
|
|
|
func (api Api) logisticList(c *gin.Context) {
|
|
|
req := commonsrv.LogisticListReqVO{}
|