Skip to content

Commit

Permalink
fix files
Browse files Browse the repository at this point in the history
  • Loading branch information
heliang666s committed Jan 15, 2025
1 parent 13dc28c commit c36fe23
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,12 @@

package org.apache.dubbo.rest.openapi.advance;

import org.apache.dubbo.remoting.http12.HttpMethods;
import org.apache.dubbo.remoting.http12.rest.Mapping;
import org.apache.dubbo.remoting.http12.rest.Param;
import org.apache.dubbo.remoting.http12.rest.ParamType;

public interface DemoService {

String hello(String name);

@Mapping(path = "/hi", method = HttpMethods.POST)
String hello(User user, @Param(value = "c", type = ParamType.Header) int count);
String hello(User user,int count);

@Mapping
String helloUser(User user);

}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@

package org.apache.dubbo.rest.openapi.advance;

import org.apache.dubbo.remoting.http12.rest.Schema;

public class User {
@Schema(description = "title")
private String title;
@Schema(description = "name")
private String name;

public String getTitle() {
Expand Down

0 comments on commit c36fe23

Please sign in to comment.