AigcAppWeb.java 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. /*
  2. * Copyright (c) 2024 LangChat. TyCoding All Rights Reserved.
  3. *
  4. * Licensed under the GNU Affero General Public License, Version 3 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * https://www.gnu.org/licenses/agpl-3.0.html
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. package cn.tycoding.langchat.app.entity;
  17. import com.baomidou.mybatisplus.annotation.FieldStrategy;
  18. import com.baomidou.mybatisplus.annotation.IdType;
  19. import com.baomidou.mybatisplus.annotation.TableField;
  20. import com.baomidou.mybatisplus.annotation.TableId;
  21. import lombok.Data;
  22. import lombok.experimental.Accessors;
  23. import java.io.Serializable;
  24. import java.util.Date;
  25. /**
  26. * @author tycoding
  27. * @since 2024/7/26
  28. */
  29. @Data
  30. @Accessors(chain = true)
  31. public class AigcAppWeb implements Serializable {
  32. private static final long serialVersionUID = -94917153262781949L;
  33. /**
  34. * 主键
  35. */
  36. @TableId(type = IdType.ASSIGN_UUID)
  37. private String id;
  38. private String modelId;
  39. private String appId;
  40. private String channel;
  41. private String apiKey;
  42. @TableField(updateStrategy = FieldStrategy.ALWAYS)
  43. private Integer reqLimit;
  44. private String name;
  45. private String des;
  46. private Date expired = null;
  47. private Date createTime;
  48. @TableField(exist = false)
  49. private AigcApp app;
  50. }