Your Name
2023-01-16 5fc2fc57afc63a906ec5567e91aeab72d20aab7d
service-common/src/main/java/com/java110/common/cmd/itemRelease/ListItemReleaseResCmd.java
@@ -20,6 +20,7 @@
import com.java110.core.context.ICmdDataFlowContext;
import com.java110.core.event.cmd.Cmd;
import com.java110.core.event.cmd.CmdEvent;
import com.java110.doc.annotation.*;
import com.java110.intf.common.IItemReleaseResV1InnerServiceSMO;
import com.java110.utils.exception.CmdException;
import com.java110.utils.util.Assert;
@@ -34,10 +35,37 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@Java110CmdDoc(title = "查询放行物品",
        description = "查询放行物品,供物业端使用",
        httpMethod = "get",
        url = "http://{ip}:{port}/app/itemRelease.listItemReleaseRes",
        resource = "commonDoc",
        author = "吴学文",
        serviceCode = "itemRelease.listItemReleaseRes"
)
@Java110ParamsDoc(params = {
        @Java110ParamDoc(name = "communityId", length = 30, remark = "放行小区"),
        @Java110ParamDoc(name = "irId", length = 30, remark = "物品放行ID"),
})
@Java110ResponseDoc(
        params = {
                @Java110ParamDoc(name = "code", type = "int", length = 11, defaultValue = "0", remark = "返回编号,0 成功 其他失败"),
                @Java110ParamDoc(name = "msg", type = "String", length = 250, defaultValue = "成功", remark = "描述"),
                @Java110ParamDoc(name = "data", type = "Array", length = -1, defaultValue = "成功", remark = "数据"),
                @Java110ParamDoc(parentNodeName = "data", name = "resName", type = "String", length = -1,  remark = "物品名称"),
        }
)
@Java110ExampleDoc(
        reqBody="{'irId':'123','communityId':'123'}",
        resBody="{'code':0,'msg':'成功'}"
)
/**
 * 类表述:查询
 * 服务编码:itemReleaseRes.listItemReleaseRes
 * 服务编码:itemRelease.listItemReleaseRes
 * 请求路劲:/app/itemReleaseRes.ListItemReleaseRes
 * add by 吴学文 at 2023-01-11 15:49:03 mail: 928255095@qq.com
 * open source address: https://gitee.com/wuxw7/MicroCommunity
@@ -56,6 +84,7 @@
    public void validate(CmdEvent event, ICmdDataFlowContext cmdDataFlowContext, JSONObject reqJson) {
        super.validatePageInfo(reqJson);
        Assert.hasKeyAndValue(reqJson, "communityId", "请求报文中未包含communityId");
        Assert.hasKeyAndValue(reqJson, "irId", "请求报文中未包含物品放行ID");
    }