[+] 协议
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.acgist</groupId>
|
||||
<artifactId>taoyao-signal</artifactId>
|
||||
<artifactId>taoyao-media</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
17
taoyao-live/src/main/java/com/acgist/taoyao/live/Live.java
Normal file
17
taoyao-live/src/main/java/com/acgist/taoyao/live/Live.java
Normal file
@@ -0,0 +1,17 @@
|
||||
package com.acgist.taoyao.live;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
/**
|
||||
* 直播
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@Getter
|
||||
@Setter
|
||||
@Schema(title = "直播", description = "直播")
|
||||
public class Live {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.acgist.taoyao.live;
|
||||
|
||||
public class LiveManager {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.acgist.taoyao.live.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.acgist.taoyao.boot.model.Message;
|
||||
import com.acgist.taoyao.live.Live;
|
||||
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.media.Content;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import io.swagger.v3.oas.annotations.responses.ApiResponse;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
|
||||
/**
|
||||
* 直播
|
||||
*
|
||||
* @author acgist
|
||||
*/
|
||||
@Tag(name = "直播", description = "直播管理")
|
||||
@RestController
|
||||
@RequestMapping("/live")
|
||||
public class LiveController {
|
||||
|
||||
@Operation(summary = "直播列表", description = "直播列表")
|
||||
@GetMapping("/list")
|
||||
@ApiResponse(content = @Content(schema = @Schema(implementation = Live.class)))
|
||||
public Message list() {
|
||||
return Message.success();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user