Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能增加mjextension,yymodel之类的支持吗? #25

Open
kedu opened this issue Nov 28, 2019 · 3 comments
Open

能增加mjextension,yymodel之类的支持吗? #25

kedu opened this issue Nov 28, 2019 · 3 comments

Comments

@kedu
Copy link

kedu commented Nov 28, 2019

如题,让我以后不用写这个。

  • (NSDictionary<NSString *, NSString *> *)jsonKeyToClassNameMap
    {
    return @{kCGDataList:@"CGRecommandQuestionList"};
    }
    最好rootclass的前缀能带到子类去。如rootclass为RootModel,把这@Property (nonatomic , strong) Data * data;
    改为@Property (nonatomic , strong) RootData * data;
@netyouli
Copy link
Owner

mjextension,yymodel都是支持的吧,模型类应该都是通用的

@kedu
Copy link
Author

kedu commented Dec 2, 2019

我知道肯定支持的。只是需要我手敲(NSDictionary<NSString *, NSString *> *)jsonKeyToClassNameMap
{
return @{kCGDataList:@"CGRecommandQuestionList"};
}
这些放到.m里。希望里面就能支持

@netyouli
Copy link
Owner

netyouli commented Dec 2, 2019

你自定义类名属性名一样要手动写啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants