ergehenmeng commented on issue #915:
URL: https://github.com/apache/fesod/issues/915#issuecomment-5264818227

   > [@ergehenmeng](https://github.com/ergehenmeng) 
[@bengbengbalabalabeng](https://github.com/bengbengbalabalabeng) 
你们好,我也在解决这个问题,并发起了讨论,我觉得不使用注解,直接使用枚举,像mybatis-plus一样,枚举实现一个具体的接口,那个这个枚举的字段就可以直接用来导入导出。这样使用起来更简单。
 [#1005 ](https://github.com/apache/fesod/discussions/1005)
   
   我看了你的这个实现, 通过枚举确实能实现翻译, 但是太过于耦合, 如果放开 DictExcelProperty 注解权限, 自由度会更高,
   @CustomDictExcelProperty(translate="1=是,0=否",  dictType="sex") 
    你可以通过这种自定义注解实现更多可能, 不限于枚举, 对于简单的可以解析字符串格式, 也能解析数据字典, 翻译来源就没有什么限制了, 
如果单纯为了枚举, 上面我定义的转换器实际上和你的差不多, 你的是实现IEnum 我是通过@ExcelDesc注解


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to