access_path.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. // ==========================================================================
  2. // This is auto-generated by gf cli tool. Fill this file as you wish.
  3. // ==========================================================================
  4. package model
  5. import (
  6. "lims_adapter/model"
  7. "lims_adapter/model/access/internal"
  8. )
  9. // AccessPath is the golang structure for table access_path.
  10. type AccessPath internal.AccessPath
  11. // Fill with you ideas below.
  12. type AccessPathListReq struct {
  13. Page *model.Page `json:"page"`
  14. OrderBy *model.OrderBy `json:"orderBy"`
  15. ObjName string `json:"objName"` // 设备名称或房间名称(实验室)
  16. ObjType *int `json:"objType"` // 对象类型 0 仪器设备 1房间(实验室)
  17. LockId string `json:"lockId"` // 门禁ID
  18. }
  19. type AccessPathAddReq struct {
  20. ObjId string `json:"objId"` // 设备ID或房间ID(实验室)
  21. ObjName string `json:"objName"` // 设备名称或房间名称(实验室)
  22. ObjType int `json:"objType"` // 对象类型 0 仪器设备 1房间(实验室)
  23. LockId []string `json:"lockId"` // 门禁ID
  24. }
  25. type ObjLock struct {
  26. ObjId string `json:"objId"` // 设备ID或房间ID(实验室)
  27. ObjName string `json:"objName"` // 设备名称或房间名称(实验室)
  28. ObjType int `json:"objType"` // 对象类型 0 仪器设备 1房间(实验室)
  29. Lock []*DeviceLockRelate `json:"lock"`
  30. }
  31. type AccessPathUpdateReq struct {
  32. ObjId string `json:"objId"` // 设备ID或房间ID(实验室)
  33. ObjName string `json:"objName"` // 设备名称或房间名称(实验室)
  34. ObjType int `json:"objType"` // 对象类型 0 仪器设备 1房间(实验室)
  35. LockId []string `json:"lockId"` // 门禁ID
  36. }
  37. type AccessPathDeleteReqItem struct {
  38. ObjId string `json:"objId"` // 设备ID或房间ID(实验室)
  39. ObjType int `json:"objType"` // 对象类型 0 仪器设备 1房间(实验室)
  40. }
  41. type AccessPathGetReq struct {
  42. ObjId string `json:"objId"` // 设备ID或房间ID(实验室)
  43. ObjType int `json:"objType"` // 对象类型 0 仪器设备 1房间(实验室)
  44. }
  45. type AccessPathDeleteReq []AccessPathDeleteReqItem