小程序店铺信息接口

This commit is contained in:
张松
2025-02-14 14:03:43 +08:00
parent 4c6d521118
commit 0efbb1e747
14 changed files with 479 additions and 10 deletions

View File

@@ -0,0 +1,31 @@
package com.czg.controller.user;
import com.czg.account.dto.shopinfo.ShopInfoByCodeDTO;
import com.czg.account.service.ShopInfoService;
import com.czg.resp.CzgResult;
import jakarta.annotation.Resource;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
/**
* 小程序店铺相关
* @author Administrator
*/
@RestController
@RequestMapping("/user/shopInfo")
public class UShopInfoController {
@Resource
private ShopInfoService shopInfoService;
/**
* 桌码换取详细店铺信息
* @return 店铺信息
*/
@GetMapping
public CzgResult<ShopInfoByCodeDTO> getByCode(@RequestParam @NotEmpty String tableCode, String lat, String lng) {
return CzgResult.success(shopInfoService.getByCode(tableCode, lat, lng, true));
}
}