Search in sources :

Example 1 with BusiLogFieldResponse

use of beans.response.BusiLogFieldResponse in project MSEC by Tencent.

the class DeleteBusiLogField method exec.

public BusiLogFieldResponse exec(BusiLogField request) {
    BusiLogFieldResponse response = new BusiLogFieldResponse();
    String result = doDeleteBusiLogField(request);
    if (result == null || !result.equals("success")) {
        response.setMessage(result);
        response.setStatus(100);
    } else {
        response.setMessage("success");
        response.setStatus(0);
    }
    return response;
}
Also used : BusiLogFieldResponse(beans.response.BusiLogFieldResponse)

Example 2 with BusiLogFieldResponse

use of beans.response.BusiLogFieldResponse in project MSEC by Tencent.

the class AddBusiLogField method exec.

public BusiLogFieldResponse exec(BusiLogField request) {
    BusiLogFieldResponse response = new BusiLogFieldResponse();
    String result = doAddBusiLogField(request);
    if (result == null || !result.equals("success")) {
        response.setMessage(result);
        response.setStatus(100);
    } else {
        response.setMessage("success");
        response.setStatus(0);
    }
    return response;
}
Also used : BusiLogFieldResponse(beans.response.BusiLogFieldResponse)

Example 3 with BusiLogFieldResponse

use of beans.response.BusiLogFieldResponse in project MSEC by Tencent.

the class QueryBusiLogField method exec.

public BusiLogFieldResponse exec(BusiLogField request) {
    BusiLogFieldResponse response = new BusiLogFieldResponse();
    ArrayList<BusiLogField> fields = new ArrayList<BusiLogField>();
    String msg = doGetBusiLogField(request, fields);
    if (msg == null || !msg.equals("success")) {
        response.setMessage(msg);
        response.setStatus(100);
    } else {
        response.setField_list(fields);
        response.setMessage("success");
        response.setStatus(0);
    }
    return response;
}
Also used : BusiLogField(beans.request.BusiLogField) ArrayList(java.util.ArrayList) BusiLogFieldResponse(beans.response.BusiLogFieldResponse)

Aggregations

BusiLogFieldResponse (beans.response.BusiLogFieldResponse)3 BusiLogField (beans.request.BusiLogField)1 ArrayList (java.util.ArrayList)1