智慧食堂
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.

18 lines
1.1 KiB

  1. package md
  2. // 缓存key统一管理
  3. const (
  4. AdminJwtTokenKey = "%s:smart_canteen_admin_jwt_token:%s" // jwt, 占位符:ip, admin:id
  5. JwtTokenCacheTime = 3600 * 24
  6. AdminRolePermissionKey = "%s:smart_canteen_admin_role_permission:%s" // 占位符:ip, admin:id
  7. AdminRolePermissionCacheTime = 3600 * 24 * 0.5
  8. AdminHomePageDataKey = "%s:smart_canteen_admin_home_data:%s" // 占位符:ip, admin:id
  9. AdminHomePageDataCacheTime = 60 * 10
  10. CfgCacheTime = 86400
  11. AppCfgCacheKey = "smart_canteen:%s" // 占位符: key的第一个字母
  12. WxOfficialAccountCacheKey = "wx_official_account" // 占位符: key的第一个字母
  13. AuditLockKeyForCentralKitchenLockKey = "audit_lock_key_for_central_kitchen_lock_key"
  14. BatchAskForLeaveLockKeyForCentralKitchen = "batch_ask_for_leave_lock_key_for_central_kitchen"
  15. OrdRefundLockKeyForCentralKitchenSchool = "ord_refund_lock_key_for_central_kitchen_school"
  16. )