
package com.kxs.system.api.feign;

import com.kxs.common.core.constant.SecurityConstants;
import com.kxs.common.core.util.R;
import com.kxs.system.api.dto.admin.UserInfo;
import com.kxs.system.api.model.KxsUserMsg;
import com.kxs.system.api.model.SysLog;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.service.annotation.GetExchange;
import org.springframework.web.service.annotation.PostExchange;

/**
 * @author Lxq
 * @date 2021/6/22
 */
public interface RemoteUserMsgService {

	/**
	 * 发送消息
	 * @param userMsg 消息实体
	 * @param from 调用标志
	 * @return R
	 */
	@PostExchange("/userMsg/save")
	R<Boolean> pushUserMsg(@RequestBody KxsUserMsg userMsg, @RequestHeader(SecurityConstants.FROM) String from);

}
