mirror of
https://github.com/wu736139669/Ash_AWord.git
synced 2026-08-06 06:15:20 +00:00
31 lines
757 B
Objective-C
31 lines
757 B
Objective-C
//
|
|
// NotePublishViewModel.m
|
|
// Ash_AWord
|
|
//
|
|
// Created by xmfish on 15/4/1.
|
|
// Copyright (c) 2015年 ash. All rights reserved.
|
|
//
|
|
|
|
#import "NotePublishViewModel.h"
|
|
|
|
@implementation NotePublishViewModel
|
|
|
|
|
|
+(PropertyEntity*)requireAddNote:(NSString *)content withImage:(UIImage *)image
|
|
{
|
|
PropertyEntity *pro = [[PropertyEntity alloc] init];
|
|
pro.requireType = HTTPRequestTypeWithPOSTDATA;
|
|
proFile *file = [[proFile alloc] init];
|
|
file.name = @"img";
|
|
file.img = [NSArray arrayWithObject:image];
|
|
pro.pFile = file;
|
|
pro.responesOBJ = self.class;
|
|
NSDictionary* dic = @{@"content": content,
|
|
};
|
|
pro.pro = @{@"root": dic,
|
|
@"command": @"20001",
|
|
};
|
|
return pro;
|
|
}
|
|
@end
|