Files
platforms/backend/api/internal/logic/gas/ticket_values.go
2026-08-22 10:12:47 +08:00

25 lines
780 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Package gas 定义气站客服工单允许写入的业务枚举。
// 版本v1.0.0
package gas
var supportedTicketCategories = map[string]struct{}{
"delivery": {}, "installation": {}, "repair": {},
"inspection": {}, "reinspection": {}, "customer_service": {},
}
var supportedTicketPriorities = map[string]struct{}{
"low": {}, "normal": {}, "high": {}, "urgent": {},
}
// isSupportedTicketCategory 判断工单分类是否属于气站端公开枚举。
func isSupportedTicketCategory(category string) bool {
_, ok := supportedTicketCategories[category]
return ok
}
// isSupportedTicketPriority 判断工单优先级是否属于气站端公开枚举。
func isSupportedTicketPriority(priority string) bool {
_, ok := supportedTicketPriorities[priority]
return ok
}