class.h.tpl 359 B

1234567891011
  1. #import <Foundation/Foundation.h>
  2. {{range .Tables}}@interface {{Mapper .Name}} : NSObject
  3. {{range .Columns}}@property(nonatomic,{{if eq (Type .) "NSString*"}}retain{{else}}assign{{end}}) {{Type .}} {{if eq .Name "id"}}remote_id{{else}}{{Mapper .Name}}{{end}};
  4. {{end}}
  5. +({{Mapper .Name}} *)paserJson:(NSString *)jsonString;
  6. -(NSString *)toJson;
  7. @end
  8. {{end}}