17 lines
271 B
Go
17 lines
271 B
Go
package utils
|
|
|
|
// QuestionType int转字符串
|
|
func QuestionType(t int) string {
|
|
if t == 1 {
|
|
return "单选题"
|
|
} else if t == 2 {
|
|
return "多选题"
|
|
} else if t == 3 {
|
|
return "问答题"
|
|
} else if t == 4 {
|
|
return "判断题"
|
|
} else {
|
|
return "未知"
|
|
}
|
|
}
|