fix: api descript

This commit is contained in:
wwweww
2026-02-28 05:33:16 +08:00
parent 5930fb0dde
commit d2f33b4b96
243 changed files with 37065 additions and 780 deletions
@@ -0,0 +1,98 @@
// Code generated by ent, DO NOT EDIT.
package shopinvitations
import (
"time"
"entgo.io/ent/dialect/sql"
)
const (
// Label holds the string label denoting the shopinvitations type in the database.
Label = "shop_invitations"
// FieldID holds the string denoting the id field in the database.
FieldID = "id"
// FieldShopID holds the string denoting the shop_id field in the database.
FieldShopID = "shop_id"
// FieldPlayerID holds the string denoting the player_id field in the database.
FieldPlayerID = "player_id"
// FieldStatus holds the string denoting the status field in the database.
FieldStatus = "status"
// FieldInvitedBy holds the string denoting the invited_by field in the database.
FieldInvitedBy = "invited_by"
// FieldCreatedAt holds the string denoting the created_at field in the database.
FieldCreatedAt = "created_at"
// FieldRespondedAt holds the string denoting the responded_at field in the database.
FieldRespondedAt = "responded_at"
// Table holds the table name of the shopinvitations in the database.
Table = "shop_invitations"
)
// Columns holds all SQL columns for shopinvitations fields.
var Columns = []string{
FieldID,
FieldShopID,
FieldPlayerID,
FieldStatus,
FieldInvitedBy,
FieldCreatedAt,
FieldRespondedAt,
}
// ValidColumn reports if the column name is valid (part of the table columns).
func ValidColumn(column string) bool {
for i := range Columns {
if column == Columns[i] {
return true
}
}
return false
}
var (
// DefaultStatus holds the default value on creation for the "status" field.
DefaultStatus string
// StatusValidator is a validator for the "status" field. It is called by the builders before save.
StatusValidator func(string) error
// DefaultCreatedAt holds the default value on creation for the "created_at" field.
DefaultCreatedAt func() time.Time
)
// OrderOption defines the ordering options for the ShopInvitations queries.
type OrderOption func(*sql.Selector)
// ByID orders the results by the id field.
func ByID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldID, opts...).ToFunc()
}
// ByShopID orders the results by the shop_id field.
func ByShopID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldShopID, opts...).ToFunc()
}
// ByPlayerID orders the results by the player_id field.
func ByPlayerID(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldPlayerID, opts...).ToFunc()
}
// ByStatus orders the results by the status field.
func ByStatus(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldStatus, opts...).ToFunc()
}
// ByInvitedBy orders the results by the invited_by field.
func ByInvitedBy(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldInvitedBy, opts...).ToFunc()
}
// ByCreatedAt orders the results by the created_at field.
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldCreatedAt, opts...).ToFunc()
}
// ByRespondedAt orders the results by the responded_at field.
func ByRespondedAt(opts ...sql.OrderTermOption) OrderOption {
return sql.OrderByField(FieldRespondedAt, opts...).ToFunc()
}
@@ -0,0 +1,375 @@
// Code generated by ent, DO NOT EDIT.
package shopinvitations
import (
"juwan-backend/app/shop/rpc/internal/models/predicate"
"time"
"entgo.io/ent/dialect/sql"
)
// ID filters vertices based on their ID field.
func ID(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldID, id))
}
// IDEQ applies the EQ predicate on the ID field.
func IDEQ(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldID, id))
}
// IDNEQ applies the NEQ predicate on the ID field.
func IDNEQ(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldID, id))
}
// IDIn applies the In predicate on the ID field.
func IDIn(ids ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldID, ids...))
}
// IDNotIn applies the NotIn predicate on the ID field.
func IDNotIn(ids ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldID, ids...))
}
// IDGT applies the GT predicate on the ID field.
func IDGT(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldID, id))
}
// IDGTE applies the GTE predicate on the ID field.
func IDGTE(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldID, id))
}
// IDLT applies the LT predicate on the ID field.
func IDLT(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldID, id))
}
// IDLTE applies the LTE predicate on the ID field.
func IDLTE(id int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldID, id))
}
// ShopID applies equality check predicate on the "shop_id" field. It's identical to ShopIDEQ.
func ShopID(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldShopID, v))
}
// PlayerID applies equality check predicate on the "player_id" field. It's identical to PlayerIDEQ.
func PlayerID(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldPlayerID, v))
}
// Status applies equality check predicate on the "status" field. It's identical to StatusEQ.
func Status(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldStatus, v))
}
// InvitedBy applies equality check predicate on the "invited_by" field. It's identical to InvitedByEQ.
func InvitedBy(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldInvitedBy, v))
}
// CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAt(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldCreatedAt, v))
}
// RespondedAt applies equality check predicate on the "responded_at" field. It's identical to RespondedAtEQ.
func RespondedAt(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldRespondedAt, v))
}
// ShopIDEQ applies the EQ predicate on the "shop_id" field.
func ShopIDEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldShopID, v))
}
// ShopIDNEQ applies the NEQ predicate on the "shop_id" field.
func ShopIDNEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldShopID, v))
}
// ShopIDIn applies the In predicate on the "shop_id" field.
func ShopIDIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldShopID, vs...))
}
// ShopIDNotIn applies the NotIn predicate on the "shop_id" field.
func ShopIDNotIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldShopID, vs...))
}
// ShopIDGT applies the GT predicate on the "shop_id" field.
func ShopIDGT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldShopID, v))
}
// ShopIDGTE applies the GTE predicate on the "shop_id" field.
func ShopIDGTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldShopID, v))
}
// ShopIDLT applies the LT predicate on the "shop_id" field.
func ShopIDLT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldShopID, v))
}
// ShopIDLTE applies the LTE predicate on the "shop_id" field.
func ShopIDLTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldShopID, v))
}
// PlayerIDEQ applies the EQ predicate on the "player_id" field.
func PlayerIDEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldPlayerID, v))
}
// PlayerIDNEQ applies the NEQ predicate on the "player_id" field.
func PlayerIDNEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldPlayerID, v))
}
// PlayerIDIn applies the In predicate on the "player_id" field.
func PlayerIDIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldPlayerID, vs...))
}
// PlayerIDNotIn applies the NotIn predicate on the "player_id" field.
func PlayerIDNotIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldPlayerID, vs...))
}
// PlayerIDGT applies the GT predicate on the "player_id" field.
func PlayerIDGT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldPlayerID, v))
}
// PlayerIDGTE applies the GTE predicate on the "player_id" field.
func PlayerIDGTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldPlayerID, v))
}
// PlayerIDLT applies the LT predicate on the "player_id" field.
func PlayerIDLT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldPlayerID, v))
}
// PlayerIDLTE applies the LTE predicate on the "player_id" field.
func PlayerIDLTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldPlayerID, v))
}
// StatusEQ applies the EQ predicate on the "status" field.
func StatusEQ(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldStatus, v))
}
// StatusNEQ applies the NEQ predicate on the "status" field.
func StatusNEQ(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldStatus, v))
}
// StatusIn applies the In predicate on the "status" field.
func StatusIn(vs ...string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldStatus, vs...))
}
// StatusNotIn applies the NotIn predicate on the "status" field.
func StatusNotIn(vs ...string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldStatus, vs...))
}
// StatusGT applies the GT predicate on the "status" field.
func StatusGT(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldStatus, v))
}
// StatusGTE applies the GTE predicate on the "status" field.
func StatusGTE(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldStatus, v))
}
// StatusLT applies the LT predicate on the "status" field.
func StatusLT(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldStatus, v))
}
// StatusLTE applies the LTE predicate on the "status" field.
func StatusLTE(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldStatus, v))
}
// StatusContains applies the Contains predicate on the "status" field.
func StatusContains(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldContains(FieldStatus, v))
}
// StatusHasPrefix applies the HasPrefix predicate on the "status" field.
func StatusHasPrefix(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldHasPrefix(FieldStatus, v))
}
// StatusHasSuffix applies the HasSuffix predicate on the "status" field.
func StatusHasSuffix(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldHasSuffix(FieldStatus, v))
}
// StatusEqualFold applies the EqualFold predicate on the "status" field.
func StatusEqualFold(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEqualFold(FieldStatus, v))
}
// StatusContainsFold applies the ContainsFold predicate on the "status" field.
func StatusContainsFold(v string) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldContainsFold(FieldStatus, v))
}
// InvitedByEQ applies the EQ predicate on the "invited_by" field.
func InvitedByEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldInvitedBy, v))
}
// InvitedByNEQ applies the NEQ predicate on the "invited_by" field.
func InvitedByNEQ(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldInvitedBy, v))
}
// InvitedByIn applies the In predicate on the "invited_by" field.
func InvitedByIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldInvitedBy, vs...))
}
// InvitedByNotIn applies the NotIn predicate on the "invited_by" field.
func InvitedByNotIn(vs ...int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldInvitedBy, vs...))
}
// InvitedByGT applies the GT predicate on the "invited_by" field.
func InvitedByGT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldInvitedBy, v))
}
// InvitedByGTE applies the GTE predicate on the "invited_by" field.
func InvitedByGTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldInvitedBy, v))
}
// InvitedByLT applies the LT predicate on the "invited_by" field.
func InvitedByLT(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldInvitedBy, v))
}
// InvitedByLTE applies the LTE predicate on the "invited_by" field.
func InvitedByLTE(v int64) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldInvitedBy, v))
}
// CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldCreatedAt, v))
}
// CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldCreatedAt, v))
}
// CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldCreatedAt, vs...))
}
// CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func CreatedAtNotIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldCreatedAt, vs...))
}
// CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldCreatedAt, v))
}
// CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtGTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldCreatedAt, v))
}
// CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldCreatedAt, v))
}
// CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtLTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldCreatedAt, v))
}
// RespondedAtEQ applies the EQ predicate on the "responded_at" field.
func RespondedAtEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldEQ(FieldRespondedAt, v))
}
// RespondedAtNEQ applies the NEQ predicate on the "responded_at" field.
func RespondedAtNEQ(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNEQ(FieldRespondedAt, v))
}
// RespondedAtIn applies the In predicate on the "responded_at" field.
func RespondedAtIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIn(FieldRespondedAt, vs...))
}
// RespondedAtNotIn applies the NotIn predicate on the "responded_at" field.
func RespondedAtNotIn(vs ...time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotIn(FieldRespondedAt, vs...))
}
// RespondedAtGT applies the GT predicate on the "responded_at" field.
func RespondedAtGT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGT(FieldRespondedAt, v))
}
// RespondedAtGTE applies the GTE predicate on the "responded_at" field.
func RespondedAtGTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldGTE(FieldRespondedAt, v))
}
// RespondedAtLT applies the LT predicate on the "responded_at" field.
func RespondedAtLT(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLT(FieldRespondedAt, v))
}
// RespondedAtLTE applies the LTE predicate on the "responded_at" field.
func RespondedAtLTE(v time.Time) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldLTE(FieldRespondedAt, v))
}
// RespondedAtIsNil applies the IsNil predicate on the "responded_at" field.
func RespondedAtIsNil() predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldIsNull(FieldRespondedAt))
}
// RespondedAtNotNil applies the NotNil predicate on the "responded_at" field.
func RespondedAtNotNil() predicate.ShopInvitations {
return predicate.ShopInvitations(sql.FieldNotNull(FieldRespondedAt))
}
// And groups predicates with the AND operator between them.
func And(predicates ...predicate.ShopInvitations) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.AndPredicates(predicates...))
}
// Or groups predicates with the OR operator between them.
func Or(predicates ...predicate.ShopInvitations) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.OrPredicates(predicates...))
}
// Not applies the not operator on the given predicate.
func Not(p predicate.ShopInvitations) predicate.ShopInvitations {
return predicate.ShopInvitations(sql.NotPredicates(p))
}