|
|
@@ -0,0 +1,39 @@
|
|
|
+package com.management.platform.controller;
|
|
|
+
|
|
|
+import com.management.platform.mapper.DepartmentMapper;
|
|
|
+import com.management.platform.mapper.UserCustomMapper;
|
|
|
+import com.management.platform.service.FeishuInfoService;
|
|
|
+import com.management.platform.service.MealApplicationsService;
|
|
|
+import com.management.platform.service.UserService;
|
|
|
+import com.management.platform.util.HttpRespMsg;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import javax.servlet.http.HttpServletRequest;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@RequestMapping("/tablet")
|
|
|
+//商米收银机接口服务
|
|
|
+public class TabletController {
|
|
|
+ @Autowired
|
|
|
+ private UserService userService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private MealApplicationsService mealApplicationsService;
|
|
|
+ /**
|
|
|
+ * 登录
|
|
|
+ * username 用户名
|
|
|
+ * password 密码
|
|
|
+ */
|
|
|
+ @RequestMapping("/login")
|
|
|
+ public HttpRespMsg login(String username, String password) {
|
|
|
+ return userService.loginAdmin(username, password);
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping("/getDinnerBokingList")
|
|
|
+ public HttpRespMsg getDinnerBookingList(String date) {
|
|
|
+ return mealApplicationsService.getDinnerBookingList(date);
|
|
|
+ }
|
|
|
+}
|