syntax = "proto3";

package cuser;

option go_package = "gitlab.galaxy-immi.com/Backend-group/proto/pb/cuser";
option java_package = "com.cuser.pb";


// List 接口
message ListDocServerGetProjectRequest {
    int32 id = 1[json_name="id"];// id
    int32 serverProjectID = 2[json_name="server_project_id"];// 创建项目表id
    int32 currNum = 3[json_name="curr_num"];// 获取项目的次数
    int64 status = 4[json_name="status"];// 状态，0 待获取， 1 获取项目成功
    string aliResult = 5[json_name="ali_result"];// 阿里返回获取项目结果
    string createdAt = 6[json_name="created_at"];// 
    string updatedAt = 7[json_name="updated_at"];// 
}

message DocServerGetProjectItem {
    int32 id = 1[json_name="id"];// id
    int32 serverProjectID = 2[json_name="server_project_id"];// 创建项目表id
    int32 currNum = 3[json_name="curr_num"];// 获取项目的次数
    int64 status = 4[json_name="status"];// 状态，0 待获取， 1 获取项目成功
    optional string aliResult = 5[json_name="ali_result"];// 阿里返回获取项目结果
    optional string createdAt = 6[json_name="created_at"];// 
    optional string updatedAt = 7[json_name="updated_at"];// 
}

message ListDocServerGetProjectResponse {
    int32 code = 1;
    string msg = 2;
    repeated DocServerGetProjectItem data = 3;
}

// Del 接口
message DelDocServerGetProjectRequest {
    int32 id = 3[json_name="id"]; // id                               
}

message DelDocServerGetProjectResponse {
    int32 code = 1;
    string msg = 2;
    int32 id = 3[json_name="id"]; // id                               
}

// Add 接口
message AddDocServerGetProjectRequest {
    int32 id = 1[json_name="id"];// id
    int32 serverProjectID = 2[json_name="server_project_id"];// 创建项目表id
    int32 currNum = 3[json_name="curr_num"];// 获取项目的次数
    int64 status = 4[json_name="status"];// 状态，0 待获取， 1 获取项目成功
    optional string aliResult = 5[json_name="ali_result"];// 阿里返回获取项目结果
    optional string createdAt = 6[json_name="created_at"];// 
    optional string updatedAt = 7[json_name="updated_at"];// 
}

message AddDocServerGetProjectResponse {
    int32 code = 1;
    string msg = 2;
    int32 id = 3[json_name="id"]; // id                               
}

// Edit 接口
message EditDocServerGetProjectRequest {
    int32 id = 1[json_name="id"];// id
    int32 serverProjectID = 2[json_name="server_project_id"];// 创建项目表id
    int32 currNum = 3[json_name="curr_num"];// 获取项目的次数
    int64 status = 4[json_name="status"];// 状态，0 待获取， 1 获取项目成功
    optional string aliResult = 5[json_name="ali_result"];// 阿里返回获取项目结果
    optional string createdAt = 6[json_name="created_at"];// 
    optional string updatedAt = 7[json_name="updated_at"];// 
}

message EditDocServerGetProjectResponse {
    int32 code = 1;
    string msg = 2;
    int32 id = 3[json_name="id"];// id        
}

// Detail 接口
message DetailDocServerGetProjectRequest {  
    int32 id = 1[json_name="id"]; // id      
}

message DetailDocServerGetProjectResponse {
    int32 code = 1;
    string msg = 2;
    DocServerGetProjectItem data = 3;
}