All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.java2e.martin.common.api.system.RemoteSystemLog Maven / Gradle / Ivy

Go to download

Martin 内部接口调用服务,每个业务模块一个目录,本着架构最简原则,远程调用不允许传输自己模块的对象,要传输的对象统一放到martin-common-bean模块下

The newest version!
package com.java2e.martin.common.api.system;

import com.java2e.martin.common.bean.system.Log;
import com.java2e.martin.common.core.api.R;
import com.java2e.martin.common.core.constant.ServiceNameConstants;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author 狮少
 * @version 1.0
 * @date 2020/9/18
 * @describtion RemoteSystemLog
 * @since 1.0
 */
@FeignClient(contextId = "remoteSystemLog", name = ServiceNameConstants.MARTIN_BIZ_SYSTEM_SERVICE)
public interface RemoteSystemLog {
    /**
     * 插入系统操作日志
     *
     * @param log
     * @return
     */
    @PostMapping("/log/add")
    R addSystemLog(@RequestBody Log log);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy