package shared

import "strings"

func DefaultString(value string, fallback string) string {
	if strings.TrimSpace(value) == "" {
		return fallback
	}
	return value
}

func BoolText(value bool) string {
	if value {
		return "已开启"
	}
	return "未开启"
}
