广告平台(站长使用)
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

enum_medium.go 557 B

4 个月前
12345678910111213141516171819202122232425
  1. package enum
  2. type MediumSettlementType int32
  3. const (
  4. MediumSettlementTypeForDay = 1
  5. MediumSettlementTypeForWeek = 2
  6. MediumSettlementTypeForMonth = 3
  7. MediumSettlementTypeForPaymentInAdvance = 4
  8. )
  9. func (gt MediumSettlementType) String() string {
  10. switch gt {
  11. case MediumSettlementTypeForDay:
  12. return "日结"
  13. case MediumSettlementTypeForWeek:
  14. return "周结"
  15. case MediumSettlementTypeForMonth:
  16. return "月结"
  17. case MediumSettlementTypeForPaymentInAdvance:
  18. return "预付"
  19. default:
  20. return "未知"
  21. }
  22. }