github.com/octohelm/storage@v0.0.0-20240516030302-1ac2cc1ea347/testdata/model/gender.go (about)

     1  package model
     2  
     3  // +gengo:enum
     4  type Gender int
     5  
     6  const (
     7  	GENDER_UNKNOWN Gender = iota
     8  	GENDER__MALE          // 男
     9  	GENDER__FEMALE        // 女
    10  )
    11  
    12  // +gengo:enum
    13  type GenderExt string
    14  
    15  const (
    16  	GENDER_EXT__MALE   GenderExt = "MAIL"   // 男
    17  	GENDER_EXT__FEMALE GenderExt = "FEMALE" // 女
    18  )