Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
23 changed files
with
161 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.example.pojo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.data.annotation.Id; | ||
import org.springframework.data.elasticsearch.annotations.Document; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import java.io.Serializable; | ||
|
||
@Data | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Document(indexName = "itemBit") | ||
public class ItemBit implements Serializable { | ||
@Id | ||
private Long id; | ||
@NotNull | ||
private String name; | ||
private String des; | ||
private Long count; | ||
private byte[] pic; | ||
private Float price; | ||
private Long sellerid; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.example.pojo; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import javax.validation.constraints.NotNull; | ||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class TypeBit implements Serializable { | ||
private Long id; | ||
@NotNull | ||
private String typename; | ||
private byte[] pic; | ||
private List<ItemBit> items; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
package com.example.service.analizeservice.sellerservice; | ||
|
||
import com.example.pojo.Item; | ||
import com.example.pojo.Result; | ||
import com.example.pojo.Type; | ||
import com.example.pojo.*; | ||
|
||
import java.util.List; | ||
|
||
public interface ItemSave { | ||
public Long Save(Type type); | ||
public Result<Integer,Integer, List<Type>> SelectType(int page); | ||
public Result<Integer,Integer,List<Item>> SelectItem(int page); | ||
public Type SelectOneType(Long id); | ||
public Item SelectOneItem(Long id); | ||
public Long Save(TypeBit type); | ||
public Result<Integer,Integer, List<TypeBit>> SelectType(int page); | ||
public Result<Integer,Integer,List<ItemBit>> SelectItem(int page); | ||
public TypeBit SelectOneType(Long id); | ||
public ItemBit SelectOneItem(Long id); | ||
} |
Oops, something went wrong.