LogFunc.java 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. package com.jd.brume.entity.func;
  2. import java.util.Date;
  3. import com.baomidou.mybatisplus.core.toolkit.support.SFunction;
  4. import com.jd.brume.entity.LogEntity;
  5. public class LogFunc {
  6. public static SFunction<LogEntity, Integer> id() {
  7. SFunction<LogEntity, Integer> f = LogEntity::getId;
  8. return f;
  9. }
  10. public static SFunction<LogEntity, Integer> opertateId() {
  11. SFunction<LogEntity, Integer> f = LogEntity::getOpertateId;
  12. return f;
  13. }
  14. public static SFunction<LogEntity, String> opertateIp() {
  15. SFunction<LogEntity, String> f = LogEntity::getOpertateIp;
  16. return f;
  17. }
  18. public static SFunction<LogEntity, String> opertateType() {
  19. SFunction<LogEntity, String> f = LogEntity::getOpertateType;
  20. return f;
  21. }
  22. public static SFunction<LogEntity, String> opertateName() {
  23. SFunction<LogEntity, String> f = LogEntity::getOpertateName;
  24. return f;
  25. }
  26. public static SFunction<LogEntity, Date> opertateTime() {
  27. SFunction<LogEntity, Date> f = LogEntity::getOpertateTime;
  28. return f;
  29. }
  30. public static SFunction<LogEntity, String> opertateModule() {
  31. SFunction<LogEntity, String> f = LogEntity::getOpertateModule;
  32. return f;
  33. }
  34. public static SFunction<LogEntity, String> opertateDesc() {
  35. SFunction<LogEntity, String> f = LogEntity::getOpertateDesc;
  36. return f;
  37. }
  38. public static SFunction<LogEntity, String> opertateStatus() {
  39. SFunction<LogEntity, String> f = LogEntity::getOpertateStatus;
  40. return f;
  41. }
  42. public static SFunction<LogEntity, String> oldMsg() {
  43. SFunction<LogEntity, String> f = LogEntity::getOldMsg;
  44. return f;
  45. }
  46. public static SFunction<LogEntity, String> newMsg() {
  47. SFunction<LogEntity, String> f = LogEntity::getNewMsg;
  48. return f;
  49. }
  50. public static SFunction<LogEntity, Date> createTime() {
  51. SFunction<LogEntity, Date> f = LogEntity::getCreateTime;
  52. return f;
  53. }
  54. }