TestRtMallApi.java 829 Bytes
package com.diligrp.cashier.mall.api;

import com.diligrp.cashier.mall.sign.RtMallSign;
import com.diligrp.cashier.shared.annotation.Sign;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName TestRtMallApi.java
 * @author dengwei
 * @version 1.0.0
 * @Description TestRtMallApi
 */
@RestController
@RequestMapping("/test")
public class TestRtMallApi {
    private static final Logger log = LoggerFactory.getLogger(TestRtMallApi.class);

    @RequestMapping("/sign")
    @Sign(sign = RtMallSign.class)
    public String rtMall(@RequestBody Object request) {
        log.info("rt mall");
        return "rt mall";
    }
}