附近小店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

hdl_printer_list.go 1.2 KiB

1 month ago
1 month ago
1 month ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package hdl
  2. import (
  3. "applet/app/e"
  4. "applet/app/svc"
  5. "github.com/gin-gonic/gin"
  6. )
  7. func PrinterCateList(c *gin.Context) {
  8. svc.PrinterCateList(c)
  9. }
  10. func PrinterLocationList(c *gin.Context) {
  11. svc.PrinterLocationList(c)
  12. }
  13. // 打印机
  14. func PrinterIndex(c *gin.Context) {
  15. svc.PrinterIndexList(c)
  16. }
  17. // 模板列表
  18. func PrinterModule(c *gin.Context) {
  19. svc.PrinterModuleList(c)
  20. }
  21. // 保存
  22. func PrinterIndexSave(c *gin.Context) {
  23. svc.PrinterIndexSave(c)
  24. }
  25. // 保存模板id
  26. func PrinterIndexModuleSave(c *gin.Context) {
  27. svc.PrinterIndexModuleSave(c)
  28. }
  29. // 使用状态保存
  30. func PrinterIndexStateSave(c *gin.Context) {
  31. svc.PrinterIndexStateSave(c)
  32. }
  33. // 删除接口
  34. func PrinterIndexDel(c *gin.Context) {
  35. var idsMap map[string]string
  36. if err := c.ShouldBindJSON(&idsMap); err != nil {
  37. e.OutErr(c, e.ERR_INVALID_ARGS, err)
  38. return
  39. }
  40. svc.PrinterDelIndex(c, idsMap["id"])
  41. }
  42. // 明细
  43. func PrinterIndexRecord(c *gin.Context) {
  44. svc.PrinterIndexRecordList(c)
  45. }
  46. // 明细筛选
  47. func PrinterIndexRecordScreen(c *gin.Context) {
  48. svc.PrinterIndexRecordScreen(c)
  49. }
  50. func PrinterIndexToSend(c *gin.Context) {
  51. svc.PrinterIndexToSend(c)
  52. }
  53. func PrinterIndexCheck(c *gin.Context) {
  54. svc.PrinterIndexCheck(c)
  55. }