| | |
| | | import com.java110.dto.hardwareAdapation.MachineDto; |
| | | import com.java110.event.service.api.ServiceDataFlowEvent; |
| | | import com.java110.utils.constant.ServiceCodeMachineConstant; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.vo.api.machine.ApiMachineDataVo; |
| | | import com.java110.vo.api.machine.ApiMachineVo; |
| | |
| | | |
| | | @Override |
| | | protected void validate(ServiceDataFlowEvent event, JSONObject reqJson) { |
| | | |
| | | super.validatePageInfo(reqJson); |
| | | |
| | | Assert.jsonObjectHaveKey(reqJson,"communityId","请求报文中未包含小区信息"); |
| | | } |
| | | |
| | | @Override |
| | |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | @Component |
| | | @ConfigurationProperties(prefix = "java110") |
| | | @PropertySource("classpath:java110.auth.wechat.properties") |
| | | @ConfigurationProperties(prefix = "java110.auth.wechat") |
| | | @PropertySource("classpath:wechatAuth.properties") |
| | | public class WechatAuthProperties { |
| | | |
| | | private String sessionHost; |
| | |
| | | import com.java110.utils.constant.PrivilegeCodeConstant; |
| | | import com.java110.utils.constant.ServiceConstant; |
| | | import com.java110.utils.exception.SMOException; |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.BeanConvertUtil; |
| | | import com.java110.web.smo.machine.IListMachinesSMO; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | protected void validate(IPageData pd, JSONObject paramIn) { |
| | | |
| | | super.validatePageInfo(pd); |
| | | Assert.jsonObjectHaveKey(paramIn, "communityId", "请求报文中未包含小区信息"); |
| | | |
| | | super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_MACHINE); |
| | | } |
| | |
| | | machineName:'', |
| | | machineIp:'', |
| | | machineMac:'', |
| | | communityId:vc.getCurrentCommunity().communityId |
| | | |
| | | } |
| | | } |
| | |
| | | }); |
| | | }, |
| | | methods:{ |
| | | editOwnerValidate(){ |
| | | editOwnerValidate:function(){ |
| | | return vc.validate.validate({ |
| | | editOwnerInfo:vc.component.editOwnerInfo |
| | | },{ |