优化
This commit is contained in:
@@ -66,7 +66,7 @@ func (s *DictionaryService) ExportDictionary(ctx context.Context, id uint) (*dto
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
details := make([]*dto.DictionaryDetailExportResponse, 0, len(v.Details))
|
||||
var details []*dto.DictionaryDetailExportResponse
|
||||
for _, detail := range v.Details {
|
||||
details = append(details, &dto.DictionaryDetailExportResponse{
|
||||
Label: detail.Label, Value: detail.Value, Extend: detail.Extend,
|
||||
|
||||
Reference in New Issue
Block a user