//
//  SaveApplicationsHttpCmd.m
//  MobilePortal
//
//  Created by xiejiangbo on 2019/3/26.
//  Copyright © 2019 yin chen. All rights reserved.
//

#import "SaveApplicationsHttpCmd.h"
#import "SaveApplicationsHttpResult.h"

static NSString *kActionUrl1 = @"/enterprise/activity/saveMyChoice";
//static NSString *kActionUrl1 = @"/appMobile/saveMyChoice";
@implementation SaveApplicationsHttpCmd
-(instancetype)initWithVersion:(NSString *)version{
    if ([version isEqualToString:PHttpVersion_v1]) {
        return [[SaveApplicationsHttpCmd alloc]initWithAuthorizationState:AuthorizationNull];
    }else{
        NSAssert(NO, @"Invalid version");
    }
    return nil;
}
    
- (instancetype)initWithAuthorizationState:(AuthorizationState)state{
    self = [super initWithAuthorizationState:state];
    if (self != nil) {
        self.result = [[SaveApplicationsHttpResult alloc]init];
    }
    return self;
}
    
- (NSString *)getActionUrl{
    
    return kActionUrl1;
}
@end
NSString *const kHttpSaveApplicationsHttpCmd_userid = @"userid";
NSString *const kHttpSaveApplicationsHttpCmd_type = @"type";
NSString *const kHttpSaveApplicationsHttpCmd_list = @"list";
NSString *const kHttpSaveApplicationsHttpCmd_id = @"id";
NSString *const kHttpSaveApplicationsHttpCmd_title = @"title";
NSString *const kHttpSaveApplicationsHttpCmd_status = @"status";
NSString *const kHttpSaveApplicationsHttpCmd_createon = @"createon";
NSString *const kHttpSaveApplicationsHttpCmd_createby = @"createby";
NSString *const kHttpSaveApplicationsHttpCmd_sort = @"sort";
NSString *const kHttpSaveApplicationsHttpCmd_pid = @"pid";
NSString *const kHttpSaveApplicationsHttpCmd_tags = @"tags";
NSString *const kHttpSaveApplicationsHttpCmd_author = @"author";
NSString *const kHttpSaveApplicationsHttpCmd_createbyname = @"createbyname";
NSString *const kHttpSaveApplicationsHttpCmd_updatebyname = @"updatebyname";
NSString *const kHttpSaveApplicationsHttpCmd_image = @"image";
NSString *const kHttpSaveApplicationsHttpCmd_homeshow = @"homeshow";
NSString *const kHttpSaveApplicationsHttpCmd_comments = @"comments";
NSString *const kHttpSaveApplicationsHttpCmd_docname = @"docname";
NSString *const kHttpSaveApplicationsHttpCmd_foldertype = @"foldertype";
NSString *const kHttpSaveApplicationsHttpCmd_kgimage = @"kgimage";
NSString *const kHttpSaveApplicationsHttpCmd_listimage = @"listimage";
NSString *const kHttpSaveApplicationsHttpCmd_system = @"system";
