线索信息+ oss sts + 添加标签

This commit is contained in:
苏竹红
2024-03-28 19:30:45 +08:00
parent 27302dd373
commit f9c6099e0f
11 changed files with 312 additions and 11 deletions

View File

@@ -2,6 +2,7 @@ package com.cool.store.controller.webb;
import com.cool.store.context.CurrentUserHolder;
import com.cool.store.context.LoginUserInfo;
import com.cool.store.request.AddTagsRequest;
import com.cool.store.request.LineListRequest;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.LineService;
@@ -58,6 +59,12 @@ public class LineInfoController {
return ResponseResult.success(lineService.getLineList(lineListRequest,user,Boolean.TRUE));
}
@PostMapping(path = "/addTags")
@ApiOperation("添加标签接口")
public ResponseResult<Boolean> addTags(@RequestBody AddTagsRequest addTagsRequest){
return ResponseResult.success(lineService.addTags(CurrentUserHolder.getUser(),addTagsRequest));
}

View File

@@ -0,0 +1,31 @@
package com.cool.store.controller.webb;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.OSSService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @Author suzhuhong
* @Date 2024/3/28 14:25
* @Version 1.0
*/
@Api("PC OSS配置")
@RestController
@RequestMapping({"/pc/oss"})
@Slf4j
public class OssClientController {
@Resource
OSSService ossService;
@GetMapping("/getUploadFileConfig")
public ResponseResult getUploadFileConfig(){
return ResponseResult.success(ossService.getUploadFileConfig());
}
}

View File

@@ -0,0 +1,31 @@
package com.cool.store.controller.webc;
import com.cool.store.response.ResponseResult;
import com.cool.store.service.OSSService;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @Author suzhuhong
* @Date 2024/3/28 14:25
* @Version 1.0
*/
@RestController
@Api("小程序OSS配置")
@RequestMapping({"/mini/oss"})
@Slf4j
public class MiniOssClientController {
@Resource
OSSService ossService;
@GetMapping("/getUploadFileConfig")
public ResponseResult getUploadFileConfig(){
return ResponseResult.success(ossService.getUploadFileConfig());
}
}