Files
platforms/backend/api/internal/logic/gas/ticket_values.go
czl231 3ef33b531d 已完成用户APP首期功能开发
交付用户端首期页面、配套接口、后台资源及测试文档。用户APP构建、静态分析和三个管理后台构建通过;完整测试仍有2项失败,后端模型注释检查未通过,详见交付记录。
2026-09-13 00:57:32 +08:00

26 lines
804 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": {},
"contract_change": {},
}
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
}