HttpClients测试
This commit is contained in:
parent
d6171e842d
commit
78ffd28597
|
@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RestController;
|
|||
import javax.annotation.Resource;
|
||||
|
||||
@RestController("userShopController")
|
||||
@RequestMapping("/admin/user")
|
||||
@RequestMapping("/user/shop")
|
||||
@Api(tags = "店铺相关接口")
|
||||
@Slf4j
|
||||
public class ShopController {
|
||||
|
@ -22,10 +22,10 @@ public class ShopController {
|
|||
private RedisTemplate redisTemplate;
|
||||
|
||||
@ApiOperation("设置店铺营业状态")
|
||||
@GetMapping("/{status}")
|
||||
public Result setStatus(@PathVariable Integer status) {
|
||||
@GetMapping("/status")
|
||||
public Result setStatus() {
|
||||
Integer status = (Integer) redisTemplate.opsForValue().get(KEY);
|
||||
log.info("设置店铺营业状态:{}", status == 1 ? "营业中" : "打样中");
|
||||
redisTemplate.opsForValue().set(KEY, status);
|
||||
return Result.success();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue