package backend import pasturePb "gitee.com/xuyiping_admin/go_proto/proto/go/backend/cow" func (s *StoreEntry) DrugCategoryMaps() map[pasturePb.DrugCategory_Kind]string { res := make(map[pasturePb.DrugCategory_Kind]string) for _, v := range s.DrugCategoryEnumList() { res[pasturePb.DrugCategory_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) DrugUsageMaps() map[pasturePb.DrugUsage_Kind]string { res := make(map[pasturePb.DrugUsage_Kind]string) for _, v := range s.DrugUsageEnumList() { res[pasturePb.DrugUsage_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) ExposeEstrusTypeMap() map[pasturePb.ExposeEstrusType_Kind]string { res := make(map[pasturePb.ExposeEstrusType_Kind]string) for _, v := range s.ExposeEstrusTypeEnumList() { res[pasturePb.ExposeEstrusType_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) FrozenSemenTypeMap() map[pasturePb.FrozenSemenType_Kind]string { res := make(map[pasturePb.FrozenSemenType_Kind]string) for _, v := range s.FrozenSemenTypeEnumList() { res[pasturePb.FrozenSemenType_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) UnitMap() map[pasturePb.Unit_Kind]string { res := make(map[pasturePb.Unit_Kind]string) for _, v := range s.UnitEnumList() { res[pasturePb.Unit_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) WeekMap() map[pasturePb.Week_Kind]string { res := make(map[pasturePb.Week_Kind]string) for _, v := range s.WeekEnumList() { res[pasturePb.Week_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) MonthMap() map[int32]string { res := make(map[int32]string) for _, v := range s.MonthEnumList() { res[v.Value] = v.Label } return res } func (s *StoreEntry) CowTypeMap() map[pasturePb.CowType_Kind]string { res := make(map[pasturePb.CowType_Kind]string) optionName := "" for _, v := range s.CowTypeEnumList(optionName) { res[pasturePb.CowType_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) CowBreedStatusMap() map[pasturePb.BreedStatus_Kind]string { res := make(map[pasturePb.BreedStatus_Kind]string) for _, v := range s.BreedStatusEnumList() { res[pasturePb.BreedStatus_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) CowKindMap() map[pasturePb.CowKind_Kind]string { res := make(map[pasturePb.CowKind_Kind]string) for _, v := range s.CowKindEnumList() { res[pasturePb.CowKind_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) CowSourceMap() map[pasturePb.CowSource_Kind]string { res := make(map[pasturePb.CowSource_Kind]string) for _, v := range s.CowSourceEnumList() { res[pasturePb.CowSource_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) WorkOrderCategoryMap() map[pasturePb.WorkOrderCategory_Kind]string { res := make(map[pasturePb.WorkOrderCategory_Kind]string) for _, v := range s.WorkOrderCategoryEnumList() { res[pasturePb.WorkOrderCategory_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) WorkOrderFrequencyMap() map[pasturePb.WorkOrderFrequency_Kind]string { res := make(map[pasturePb.WorkOrderFrequency_Kind]string) for _, v := range s.WorkOrderFrequencyEnumList() { res[pasturePb.WorkOrderFrequency_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) WorkOrderSubUnitMap() map[pasturePb.WorkOrderSubscribeUnit_Kind]string { res := make(map[pasturePb.WorkOrderSubscribeUnit_Kind]string) for _, v := range s.WorkOrderSubUnitEnumList() { res[pasturePb.WorkOrderSubscribeUnit_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) WorkOrderPriorityMap() map[pasturePb.Priority_Kind]string { res := make(map[pasturePb.Priority_Kind]string) for _, v := range s.WorkOrderPriorityEnumList() { res[pasturePb.Priority_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) SameTimeCowTypeMap() map[pasturePb.SameTimeCowType_Kind]string { res := make(map[pasturePb.SameTimeCowType_Kind]string) for _, v := range s.SameTimeCowTypeEnumList() { res[pasturePb.SameTimeCowType_Kind(v.Value)] = v.Label } return res } func CalendarTypeMap() map[pasturePb.CalendarType_Kind]string { res := make(map[pasturePb.CalendarType_Kind]string) for _, v := range CalendarTypeEnumList() { res[pasturePb.CalendarType_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) AbortionReasonsMap() map[pasturePb.AbortionReasons_Kind]string { res := make(map[pasturePb.AbortionReasons_Kind]string) for _, v := range s.AbortionReasonsEnumList() { res[pasturePb.AbortionReasons_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) PregnantCheckMethodMap() map[pasturePb.PregnantCheckMethod_Kind]string { res := make(map[pasturePb.PregnantCheckMethod_Kind]string) for _, v := range s.PregnantCheckMethodEnumList() { res[pasturePb.PregnantCheckMethod_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) PregnantCheckResultMap() map[pasturePb.PregnantCheckResult_Kind]string { res := make(map[pasturePb.PregnantCheckResult_Kind]string) for _, v := range s.PregnantCheckResultEnumList() { res[pasturePb.PregnantCheckResult_Kind(v.Value)] = v.Label } return res } func (s *StoreEntry) HealthStatusMap() map[pasturePb.HealthStatus_Kind]string { res := make(map[pasturePb.HealthStatus_Kind]string) for _, v := range s.HealthStatusEnumList() { res[pasturePb.HealthStatus_Kind(v.Value)] = v.Label } return res }