失败原因默认和message保持一致

This commit is contained in:
zhangdeman001 committed 2023-06-09 16:24:15 +08:00
1 parent e7e59267ca
commit 62d3723566
1 file changed
+3
+3
View File
@@ -57,6 +57,9 @@ func InitCodeTableWithMessage(table map[interface{}]map[string]string, convertDe
// Date : 16:19 2023/6/9
func InitCodeTableWithCodeList(list []Code, convertDefaultSuccessCode interface{}, convertDefaultLanguage string) {
for _, itemCode := range list {
if itemCode.Reason == nil || len(itemCode.Reason) == 0 {
itemCode.Reason = itemCode.Message
}
codeTable[itemCode.Value] = itemCode
}
if nil == convertDefaultSuccessCode {
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.