text stringlengths 11 6.3k | embedding listlengths 768 768 |
|---|---|
func (m *OrgUnitMemberMutation) SetOrgUnitID(i int) {
m.belongToOrgUnit = &i
} | [
0.09914404898881912,
-0.5898855924606323,
0.22538840770721436,
-0.8024814128875732,
0.7813159227371216,
1.137580156326294,
0.23761406540870667,
-0.12989377975463867,
-0.6932030320167542,
0.14109404385089874,
-0.2074744701385498,
0.6613505482673645,
-1.0121484994888306,
-0.3894554674625397,... |
func (m *OrgUnitMemberMutation) OrgUnitID() (r int, exists bool) {
v := m.belongToOrgUnit
if v == nil {
return
}
return *v, true
} | [
-0.0926363617181778,
-0.3139256238937378,
0.5371242761611938,
-0.23306551575660706,
0.9561100006103516,
0.8213898539543152,
-0.017351487651467323,
-0.34983742237091064,
-0.4063453674316406,
0.2540391683578491,
-0.270476371049881,
0.36704039573669434,
-1.3387207984924316,
-0.430755615234375... |
func (m *OrgUnitMemberMutation) OldOrgUnitID(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldOrgUnitID is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldOrgUnitID requires an ID field in the mutation")
}
oldV... | [
-0.15447308123111725,
-0.6290289163589478,
0.43529441952705383,
-0.4320782721042633,
0.12585218250751495,
0.5799896121025085,
0.2785335183143616,
-0.2735651731491089,
-0.32592037320137024,
0.6452937722206116,
0.3694131374359131,
1.2130295038223267,
-1.087278127670288,
0.28339338302612305,
... |
func (m *OrgUnitMemberMutation) ResetOrgUnitID() {
m.belongToOrgUnit = nil
} | [
0.21455112099647522,
-0.3821737766265869,
0.11950258910655975,
0.05573112517595291,
0.88973468542099,
0.6750180721282959,
0.18451251089572906,
-0.034598056226968765,
-0.5231536030769348,
0.2636600732803345,
0.24317704141139984,
1.440380334854126,
-1.2988941669464111,
-0.8260196447372437,
... |
func (m *OrgUnitMemberMutation) SetOrgUnitPositionID(i int) {
m.position = &i
} | [
-0.4575304090976715,
-0.9119988083839417,
0.17133857309818268,
-0.19410640001296997,
0.6031835079193115,
1.2982927560806274,
0.31878581643104553,
0.269290953874588,
0.325643926858902,
0.9917095899581909,
-0.5024012327194214,
-1.1243526935577393,
-1.0254008769989014,
-0.6745623350143433,
... |
func (m *OrgUnitMemberMutation) OrgUnitPositionID() (r int, exists bool) {
v := m.position
if v == nil {
return
}
return *v, true
} | [
-0.35708102583885193,
-0.44701388478279114,
0.3902917504310608,
0.10276217013597488,
0.7033993601799011,
0.7011088132858276,
-0.081785649061203,
-0.3253915309906006,
0.771440327167511,
1.0569838285446167,
-0.3662711977958679,
-1.1052193641662598,
-1.461525559425354,
-0.7741584777832031,
... |
func (m *OrgUnitMemberMutation) OldOrgUnitPositionID(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldOrgUnitPositionID is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldOrgUnitPositionID requires an ID field in... | [
-0.25130438804626465,
-0.8622456192970276,
0.5809538960456848,
-0.2637535333633423,
-0.02591226063668728,
0.8264477849006653,
0.49025285243988037,
-0.15960106253623962,
0.42436885833740234,
1.1742939949035645,
0.07209695130586624,
-0.11343318223953247,
-0.9420203566551208,
0.15437215566635... |
func (m *OrgUnitMemberMutation) ResetOrgUnitPositionID() {
m.position = nil
} | [
-0.10032187402248383,
-0.6712685823440552,
-0.020481256768107414,
0.5539245009422302,
0.6070993542671204,
0.4507427215576172,
0.21117368340492249,
0.34469327330589294,
0.23723292350769043,
0.784511387348175,
-0.1304362267255783,
-0.003922626841813326,
-1.4767608642578125,
-0.96488386392593... |
func (m *OrgUnitMemberMutation) SetCreateByID(id int) {
m.create_by = &id
} | [
-0.07756084203720093,
-0.10381201654672623,
0.3739704489707947,
0.29747435450553894,
0.21304161846637726,
0.3268660008907318,
0.07938426733016968,
-0.7276720404624939,
-0.4980722963809967,
0.32731878757476807,
-0.7652649879455566,
-0.5444809198379517,
-0.8771778345108032,
1.102124691009521... |
func (m *OrgUnitMemberMutation) ClearCreateBy() {
m.clearedcreate_by = true
} | [
-0.09494724869728088,
0.5000079870223999,
0.331535279750824,
0.8142451643943787,
0.2269287109375,
0.51759272813797,
0.6021705865859985,
-0.9154687523841858,
-0.37818443775177,
0.5063684582710266,
0.08471332490444183,
-0.28395843505859375,
-0.4316670894622803,
-0.04256783798336983,
-0.001... |
func (m *OrgUnitMemberMutation) CreateByCleared() bool {
return m.CreateByUserCleared() || m.clearedcreate_by
} | [
0.1586085557937622,
0.24433431029319763,
0.5122627019882202,
0.5140525698661804,
0.6603286862373352,
0.5253437161445618,
0.14652225375175476,
-0.9164947271347046,
-0.29162833094596863,
-0.19144628942012787,
-0.17067673802375793,
-0.34319689869880676,
-1.178300142288208,
0.16096512973308563... |
func (m *OrgUnitMemberMutation) CreateByID() (id int, exists bool) {
if m.create_by != nil {
return *m.create_by, true
}
return
} | [
-0.17132969200611115,
0.24329079687595367,
0.5581417083740234,
0.11349255591630936,
0.7332999110221863,
0.012496952898800373,
0.3785286545753479,
-0.371749609708786,
-0.5710101127624512,
0.739793598651886,
-0.8149721622467041,
-0.6742992997169495,
-1.3624738454818726,
0.39262813329696655,
... |
func (m *OrgUnitMemberMutation) CreateByIDs() (ids []int) {
if id := m.create_by; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.756608247756958,
0.27668818831443787,
0.22369419038295746,
0.06350783258676529,
1.200554609298706,
-0.5345574617385864,
0.25854501128196716,
-0.3644103407859802,
-0.6052363514900208,
0.2585615813732147,
-0.7732741832733154,
0.10276209563016891,
-0.9976871013641357,
0.22265277802944183,
... |
func (m *OrgUnitMemberMutation) ResetCreateBy() {
m.create_by = nil
m.clearedcreate_by = false
} | [
-0.14609798789024353,
0.2557256817817688,
0.28471189737319946,
0.8080891966819763,
0.8185139894485474,
-0.34073665738105774,
0.6616116762161255,
-0.48252877593040466,
-0.8269689679145813,
0.28255677223205566,
-0.3869973123073578,
-0.2868867814540863,
-0.9373827576637268,
-0.121370330452919... |
func (m *OrgUnitMemberMutation) SetUpdateByID(id int) {
m.update_by = &id
} | [
-0.10222171247005463,
-0.5132085084915161,
0.34485432505607605,
0.10939639061689377,
-0.7370730638504028,
-0.13685676455497742,
-0.04704711213707924,
0.057519566267728806,
-0.02140873298048973,
0.7760658264160156,
-0.24046827852725983,
-0.5326675772666931,
-0.8530952334403992,
0.2928218841... |
func (m *OrgUnitMemberMutation) ClearUpdateBy() {
m.clearedupdate_by = true
} | [
-0.3987187445163727,
-0.18536649644374847,
0.45603737235069275,
0.8807021975517273,
-0.8565282821655273,
0.4963579475879669,
0.21106845140457153,
-0.31350335478782654,
0.05023439973592758,
0.9415872693061829,
0.2945649027824402,
-0.6692426204681396,
-0.17230266332626343,
-0.815848052501678... |
func (m *OrgUnitMemberMutation) UpdateByCleared() bool {
return m.UpdateByUserCleared() || m.clearedupdate_by
} | [
-0.0028465581126511097,
-0.07406873255968094,
0.523500382900238,
0.6251199841499329,
-0.32799968123435974,
0.24190019071102142,
0.0390901155769825,
-0.6284413933753967,
0.0072247604839503765,
0.31370145082473755,
-0.1448373794555664,
0.07100893557071686,
-1.346798300743103,
-0.195788785815... |
func (m *OrgUnitMemberMutation) UpdateByID() (id int, exists bool) {
if m.update_by != nil {
return *m.update_by, true
}
return
} | [
-0.3960098922252655,
-0.10037824511528015,
0.6824641823768616,
0.0579216293990612,
-0.18398414552211761,
-0.09026605635881424,
0.1613689363002777,
-0.028551273047924042,
-0.21602863073349,
1.1265963315963745,
-0.6788880228996277,
-0.2947619557380676,
-1.4530184268951416,
-0.174091279506683... |
func (m *OrgUnitMemberMutation) UpdateByIDs() (ids []int) {
if id := m.update_by; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.0015140771865845,
-0.31319481134414673,
0.2884491980075836,
-0.11236948519945145,
0.2720266580581665,
-0.5620645880699158,
0.1897367537021637,
-0.024778690189123154,
-0.38375142216682434,
0.7219770550727844,
-0.6554324626922607,
0.7240259051322937,
-1.2378029823303223,
-0.39497643709182... |
func (m *OrgUnitMemberMutation) ResetUpdateBy() {
m.update_by = nil
m.clearedupdate_by = false
} | [
-0.5668594837188721,
-0.4883938729763031,
0.32739073038101196,
1.0418856143951416,
0.01667582429945469,
-0.6667944192886353,
0.4573729634284973,
-0.058632742613554,
-0.4994567036628723,
0.5709472298622131,
-0.18227539956569672,
-0.5844526886940002,
-0.710563063621521,
-0.8333815336227417,
... |
func (m *OrgUnitMemberMutation) ClearUser() {
m.cleareduser = true
} | [
-0.1984284222126007,
0.6381816267967224,
0.049217142164707184,
1.1731220483779907,
0.019519558176398277,
0.7213870882987976,
1.1284985542297363,
-0.11386743187904358,
-0.1126556545495987,
-0.5988447666168213,
0.008135048672556877,
0.18436168134212494,
-0.3521977961063385,
-0.00996678322553... |
func (m *OrgUnitMemberMutation) UserCleared() bool {
return m.cleareduser
} | [
0.3985723853111267,
-0.208955779671669,
0.3243490159511566,
0.7381575703620911,
-0.5351011157035828,
0.8448304533958435,
0.1600513458251953,
-0.5407103896141052,
-0.007590115536004305,
-0.27533477544784546,
-0.41088762879371643,
0.43140557408332825,
-0.29120150208473206,
-0.390331774950027... |
func (m *OrgUnitMemberMutation) UserIDs() (ids []int) {
if id := m.user; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.0003001689910889,
0.05870616063475609,
-0.03536856919527054,
0.7178443670272827,
0.3508845567703247,
-0.062030259519815445,
0.2152201235294342,
0.36632460355758667,
0.09873533248901367,
-0.1017436534166336,
-0.6409336924552917,
0.6578682661056519,
-1.3623021841049194,
0.0834586173295974... |
func (m *OrgUnitMemberMutation) ResetUser() {
m.user = nil
m.cleareduser = false
} | [
-0.3781416416168213,
0.5495058298110962,
0.014789409935474396,
1.0505422353744507,
0.4975382089614868,
0.003485544817522168,
1.5928980112075806,
0.11142212897539139,
-0.14437347650527954,
-1.0262503623962402,
-0.19991858303546906,
0.46634894609451294,
-0.7261229157447815,
-0.21083718538284... |
func (m *OrgUnitMemberMutation) SetPositionID(id int) {
m.position = &id
} | [
-0.5063387751579285,
-0.9073666334152222,
0.0815330296754837,
0.7317965626716614,
0.06361367553472519,
0.8660116791725159,
0.21175654232501984,
0.39366382360458374,
0.5436055660247803,
0.6019300222396851,
-0.331138551235199,
-0.8492082357406616,
-1.2376413345336914,
0.6114581227302551,
-... |
func (m *OrgUnitMemberMutation) ClearPosition() {
m.clearedposition = true
} | [
-0.26673510670661926,
-0.036090265959501266,
0.1611967235803604,
0.3136534094810486,
0.0771120935678482,
0.49595969915390015,
0.4361056685447693,
0.02642013505101204,
-0.0857381820678711,
0.09905093908309937,
0.09994278848171234,
-0.721869707107544,
-0.651483416557312,
-0.47744908928871155... |
func (m *OrgUnitMemberMutation) PositionCleared() bool {
return m.clearedposition
} | [
0.0328020304441452,
-0.3637491762638092,
0.3786608874797821,
0.47938668727874756,
-0.03324892371892929,
0.4207506477832794,
-0.28254225850105286,
-0.4088905453681946,
-0.3670976758003235,
-0.16118502616882324,
-0.18857136368751526,
-0.5260793566703796,
-0.9542386531829834,
-1.0057395696640... |
func (m *OrgUnitMemberMutation) PositionID() (id int, exists bool) {
if m.position != nil {
return *m.position, true
}
return
} | [
-0.30703866481781006,
-0.5310221314430237,
0.5435253977775574,
0.6909401416778564,
0.7622290849685669,
0.42255377769470215,
0.4522462785243988,
0.23277004063129425,
0.9301787614822388,
1.3864989280700684,
0.12673147022724152,
-1.151533842086792,
-1.7234290838241577,
0.20606796443462372,
... |
func (m *OrgUnitMemberMutation) PositionIDs() (ids []int) {
if id := m.position; id != nil {
ids = append(ids, *id)
}
return
} | [
-1.0143067836761475,
-0.49605342745780945,
0.06716548651456833,
0.6016323566436768,
0.936053454875946,
-0.10893021523952484,
-0.06534443795681,
0.1855967789888382,
0.6280242800712585,
0.640924870967865,
-0.16531160473823547,
-0.3964902460575104,
-1.684398889541626,
-0.05333439260721207,
... |
func (m *OrgUnitMemberMutation) ResetPosition() {
m.position = nil
m.clearedposition = false
} | [
-0.4807542860507965,
0.0033423160202801228,
0.06107408553361893,
0.5087931752204895,
0.690983772277832,
-0.3405372202396393,
0.9712476134300232,
0.40412598848342896,
-0.3885231614112854,
-0.19526956975460052,
-0.22366070747375488,
-0.5309060215950012,
-1.2124589681625366,
-0.65101867914199... |
func (m *OrgUnitMemberMutation) SetBelongToOrgUnitID(id int) {
m.belongToOrgUnit = &id
} | [
0.04597274959087372,
-0.8308179378509521,
0.21746955811977386,
-0.5804904103279114,
1.1638790369033813,
1.3895509243011475,
-0.6768298149108887,
-0.6933888792991638,
-0.2789548337459564,
-0.3110480308532715,
0.10095029324293137,
0.816942036151886,
-0.9222730994224548,
0.19192175567150116,
... |
func (m *OrgUnitMemberMutation) ClearBelongToOrgUnit() {
m.clearedbelongToOrgUnit = true
} | [
-0.04184392839670181,
0.051363278180360794,
0.3161185085773468,
-0.12890467047691345,
0.7963117361068726,
0.8126399517059326,
-0.09379108995199203,
-1.1520276069641113,
-0.5507199168205261,
0.1441318690776825,
0.19995471835136414,
1.1776620149612427,
-0.5913792252540588,
-0.519390702247619... |
func (m *OrgUnitMemberMutation) BelongToOrgUnitCleared() bool {
return m.clearedbelongToOrgUnit
} | [
0.23986168205738068,
-0.6037900447845459,
0.39180290699005127,
-0.13150997459888458,
0.6518887281417847,
1.077830195426941,
-0.27317723631858826,
-1.386381983757019,
-0.2540101110935211,
-0.26050880551338196,
0.013205183669924736,
0.7348970770835876,
-0.8516584038734436,
-0.257847428321838... |
func (m *OrgUnitMemberMutation) BelongToOrgUnitID() (id int, exists bool) {
if m.belongToOrgUnit != nil {
return *m.belongToOrgUnit, true
}
return
} | [
-0.04206356406211853,
-0.6028625965118408,
0.4273972511291504,
-0.3636321425437927,
1.2484530210494995,
1.0559693574905396,
0.20952649414539337,
-1.0600398778915405,
-0.13602326810359955,
0.10959755629301071,
0.14858834445476532,
0.6871257424354553,
-1.2292876243591309,
0.07493318617343903... |
func (m *OrgUnitMemberMutation) BelongToOrgUnitIDs() (ids []int) {
if id := m.belongToOrgUnit; id != nil {
ids = append(ids, *id)
}
return
} | [
-0.5274295806884766,
-0.410243421792984,
0.11978761851787567,
-0.33910244703292847,
1.3794771432876587,
0.6326785087585449,
0.24608385562896729,
-0.6410648822784424,
-0.4724356532096863,
-0.002632396761327982,
-0.12709972262382507,
0.961007833480835,
-1.1557459831237793,
0.2343555390834808... |
func (m *OrgUnitMemberMutation) ResetBelongToOrgUnit() {
m.belongToOrgUnit = nil
m.clearedbelongToOrgUnit = false
} | [
0.2806643545627594,
0.04023490101099014,
0.3481059670448303,
-0.10835762321949005,
1.504019856452942,
0.2616638243198395,
0.2676263749599457,
-0.9752678871154785,
-0.9134443998336792,
-0.4315159320831299,
-0.14490029215812683,
1.2765820026397705,
-1.1211206912994385,
-0.8588324785232544,
... |
func (m *OrgUnitMemberMutation) Where(ps ...predicate.OrgUnitMember) {
m.predicates = append(m.predicates, ps...)
} | [
-0.26354125142097473,
-0.6327059268951416,
0.14216482639312744,
0.3481470048427582,
0.26720431447029114,
0.7853588461875916,
0.21592089533805847,
-0.21284697949886322,
-1.2298367023468018,
-0.22121240198612213,
0.22806136310100555,
1.00724458694458,
-0.8159055113792419,
-0.2362961769104004... |
func (m *OrgUnitMemberMutation) Op() Op {
return m.op
} | [
-0.9044002294540405,
0.13557927310466766,
0.1006183847784996,
0.7379881739616394,
0.38084664940834045,
0.811604917049408,
0.8321320414543152,
-0.03254257142543793,
-0.032656747847795486,
0.32991886138916016,
0.12455295771360397,
-0.2949863076210022,
-1.097697377204895,
-1.2726515531539917,... |
func (m *OrgUnitMemberMutation) Type() string {
return m.typ
} | [
-0.3708377778530121,
-0.338930606842041,
-0.05348031222820282,
0.6647568345069885,
1.08536696434021,
0.6869724988937378,
0.6802998781204224,
-1.3090412616729736,
0.24975425004959106,
-0.21274468302726746,
0.2778867185115814,
0.27430233359336853,
-1.6623961925506592,
-0.2985879182815552,
... |
func (m *OrgUnitMemberMutation) Fields() []string {
fields := make([]string, 0, 8)
if m.create_by != nil {
fields = append(fields, orgunitmember.FieldCreateByUser)
}
if m.update_by != nil {
fields = append(fields, orgunitmember.FieldUpdateByUser)
}
if m.create_time != nil {
fields = append(fields, orgunitme... | [
-0.6026904582977295,
-0.21612247824668884,
0.23122192919254303,
-0.5883114337921143,
0.7170262932777405,
0.36195236444473267,
-0.41822516918182373,
-0.6192285418510437,
0.390645831823349,
-0.17478100955486298,
-0.47072675824165344,
-0.11471133679151535,
-1.0596674680709839,
-0.136915549635... |
func (m *OrgUnitMemberMutation) Field(name string) (ent.Value, bool) {
switch name {
case orgunitmember.FieldCreateByUser:
return m.CreateByUser()
case orgunitmember.FieldUpdateByUser:
return m.UpdateByUser()
case orgunitmember.FieldCreateTime:
return m.CreateTime()
case orgunitmember.FieldUpdateTime:
retu... | [
-1.0112920999526978,
-0.21747353672981262,
0.5378507375717163,
-0.152965247631073,
-0.1089419350028038,
0.9421934485435486,
-0.7077940106391907,
-0.466219037771225,
0.06028134748339653,
0.07451330125331879,
-0.44846174120903015,
-0.05361838638782501,
-1.0816177129745483,
0.3980496823787689... |
func (m *OrgUnitMemberMutation) OldField(ctx context.Context, name string) (ent.Value, error) {
switch name {
case orgunitmember.FieldCreateByUser:
return m.OldCreateByUser(ctx)
case orgunitmember.FieldUpdateByUser:
return m.OldUpdateByUser(ctx)
case orgunitmember.FieldCreateTime:
return m.OldCreateTime(ctx)
... | [
-0.37051519751548767,
-0.26294609904289246,
0.6112053394317627,
-0.6222559213638306,
0.16270090639591217,
0.7693696618080139,
0.19515718519687653,
-0.8458737730979919,
0.0048813773319125175,
-0.05780217796564102,
-0.032172687351703644,
0.3441506326198578,
-1.035107135772705,
-0.20625109970... |
func (m *OrgUnitMemberMutation) SetField(name string, value ent.Value) error {
switch name {
case orgunitmember.FieldCreateByUser:
v, ok := value.(int)
if !ok {
return fmt.Errorf("unexpected type %T for field %s", value, name)
}
m.SetCreateByUser(v)
return nil
case orgunitmember.FieldUpdateByUser:
v, ... | [
-0.8878417611122131,
-0.13471943140029907,
0.6559265851974487,
-0.14671030640602112,
0.1089014783501625,
0.6512349843978882,
0.06277178972959518,
-0.690928041934967,
-0.3159843385219574,
0.02946421504020691,
-0.26553454995155334,
0.05900857597589493,
-0.5638681650161743,
0.6085360646247864... |
func (m *OrgUnitMemberMutation) AddedFields() []string {
var fields []string
return fields
} | [
-0.27512410283088684,
0.2304134964942932,
0.26177775859832764,
-0.03413856029510498,
0.5470772385597229,
1.081594467163086,
0.07284249365329742,
-0.5088118314743042,
0.3834485113620758,
-0.8449726104736328,
-0.328128457069397,
0.30703502893447876,
-1.8754905462265015,
-0.14022648334503174,... |
func (m *OrgUnitMemberMutation) AddedField(name string) (ent.Value, bool) {
switch name {
}
return nil, false
} | [
-1.3631154298782349,
0.6174351572990417,
0.6108384132385254,
-0.33771535754203796,
0.10274528712034225,
1.374721646308899,
-0.22802940011024475,
-0.3134450316429138,
0.17429889738559723,
-0.3377399146556854,
-0.9068427681922913,
-0.8555708527565002,
-2.0577619075775146,
-0.1857364177703857... |
func (m *OrgUnitMemberMutation) AddField(name string, value ent.Value) error {
switch name {
}
return fmt.Errorf("unknown OrgUnitMember numeric field %s", name)
} | [
-0.7981967926025391,
0.5053862929344177,
0.522929847240448,
0.05876554921269417,
0.35205382108688354,
1.5236804485321045,
-0.8624919056892395,
-0.438446581363678,
-0.4375760853290558,
-0.0524289496243,
0.10839368402957916,
-0.7604202628135681,
-1.0006399154663086,
0.11283307522535324,
0.... |
func (m *OrgUnitMemberMutation) ClearedFields() []string {
var fields []string
if m.FieldCleared(orgunitmember.FieldCreateByUser) {
fields = append(fields, orgunitmember.FieldCreateByUser)
}
if m.FieldCleared(orgunitmember.FieldUpdateByUser) {
fields = append(fields, orgunitmember.FieldUpdateByUser)
}
if m.Fi... | [
-0.4119962155818939,
0.3038436770439148,
0.3350590467453003,
0.019810723140835762,
-0.32389628887176514,
0.6070506572723389,
-0.0409376285970211,
-0.940747082233429,
0.39102447032928467,
0.41058486700057983,
-0.2758483588695526,
0.38089507818222046,
-1.2534677982330322,
-0.7455976009368896... |
func (m *OrgUnitMemberMutation) FieldCleared(name string) bool {
_, ok := m.clearedFields[name]
return ok
} | [
-0.578172504901886,
0.21504993736743927,
0.6778693795204163,
-0.17997121810913086,
0.09951004385948181,
0.6423088312149048,
-0.6323292851448059,
-0.14979109168052673,
-0.41482779383659363,
-0.18667152523994446,
-0.9119409322738647,
-0.16140419244766235,
-0.27036401629447937,
-0.52528935670... |
func (m *OrgUnitMemberMutation) ClearField(name string) error {
switch name {
case orgunitmember.FieldCreateByUser:
m.ClearCreateByUser()
return nil
case orgunitmember.FieldUpdateByUser:
m.ClearUpdateByUser()
return nil
case orgunitmember.FieldUpdateTime:
m.ClearUpdateTime()
return nil
}
return fmt.Er... | [
-0.7169800400733948,
0.6214726567268372,
0.433963418006897,
0.028833091259002686,
-0.045851148664951324,
0.7886391282081604,
-0.30695030093193054,
-1.0617456436157227,
0.027729574590921402,
0.5442222952842712,
-0.2438896745443344,
-0.3514120280742645,
-0.8715034127235413,
-0.04257363080978... |
func (m *OrgUnitMemberMutation) ResetField(name string) error {
switch name {
case orgunitmember.FieldCreateByUser:
m.ResetCreateByUser()
return nil
case orgunitmember.FieldUpdateByUser:
m.ResetUpdateByUser()
return nil
case orgunitmember.FieldCreateTime:
m.ResetCreateTime()
return nil
case orgunitmemb... | [
-0.6823620200157166,
0.24968022108078003,
0.4313029944896698,
-0.09484520554542542,
0.45250430703163147,
0.46112358570098877,
0.39418235421180725,
-0.7397558689117432,
-0.05781342089176178,
0.07077859342098236,
-0.5570735931396484,
0.047834910452365875,
-1.3647708892822266,
-0.338715821504... |
func (m *OrgUnitMemberMutation) AddedEdges() []string {
edges := make([]string, 0, 5)
if m.create_by != nil {
edges = append(edges, orgunitmember.EdgeCreateBy)
}
if m.update_by != nil {
edges = append(edges, orgunitmember.EdgeUpdateBy)
}
if m.user != nil {
edges = append(edges, orgunitmember.EdgeUser)
}
i... | [
-0.39801257848739624,
-0.4167637228965759,
0.3078600764274597,
0.19836409389972687,
0.5830491781234741,
0.4041951894760132,
-0.5033749341964722,
-0.6288811564445496,
0.8477469086647034,
-0.06229792535305023,
0.10565000027418137,
0.5331816077232361,
-1.3411905765533447,
0.03599245473742485,... |
func (m *OrgUnitMemberMutation) AddedIDs(name string) []ent.Value {
switch name {
case orgunitmember.EdgeCreateBy:
if id := m.create_by; id != nil {
return []ent.Value{*id}
}
case orgunitmember.EdgeUpdateBy:
if id := m.update_by; id != nil {
return []ent.Value{*id}
}
case orgunitmember.EdgeUser:
if ... | [
-0.6850020289421082,
-0.7047438621520996,
0.399140328168869,
-0.4201565682888031,
0.3229985237121582,
0.5031453371047974,
-0.5452642440795898,
-0.3934583067893982,
0.4778200089931488,
0.008212277665734291,
0.018061134964227676,
0.6635802984237671,
-0.9403859376907349,
0.2555176317691803,
... |
func (m *OrgUnitMemberMutation) RemovedEdges() []string {
edges := make([]string, 0, 5)
return edges
} | [
-0.32908564805984497,
-0.2786586880683899,
0.4185941219329834,
0.16780956089496613,
0.09245752543210983,
-0.11524662375450134,
0.2207217663526535,
-0.22139215469360352,
0.6443291306495667,
0.18968364596366882,
-0.7601698637008667,
0.33888858556747437,
-2.042537212371826,
-0.231968209147453... |
func (m *OrgUnitMemberMutation) RemovedIDs(name string) []ent.Value {
switch name {
}
return nil
} | [
-0.9248034358024597,
-0.26487016677856445,
0.399775892496109,
-0.48358243703842163,
0.28264889121055603,
0.5363352298736572,
-0.2800764739513397,
0.3804921507835388,
0.31157082319259644,
-0.0871831551194191,
-1.418702483177185,
0.07418887317180634,
-1.4929370880126953,
0.07900438457727432,... |
func (m *OrgUnitMemberMutation) ClearedEdges() []string {
edges := make([]string, 0, 5)
if m.clearedcreate_by {
edges = append(edges, orgunitmember.EdgeCreateBy)
}
if m.clearedupdate_by {
edges = append(edges, orgunitmember.EdgeUpdateBy)
}
if m.cleareduser {
edges = append(edges, orgunitmember.EdgeUser)
}
... | [
-0.801315188407898,
-0.22420065104961395,
0.3444722294807434,
0.40463733673095703,
-0.3112156391143799,
0.18314293026924133,
-0.2806832492351532,
-1.1651854515075684,
0.39512526988983154,
1.137613296508789,
0.15030959248542786,
1.0586224794387817,
-1.0827339887619019,
-0.6561354398727417,
... |
func (m *OrgUnitMemberMutation) EdgeCleared(name string) bool {
switch name {
case orgunitmember.EdgeCreateBy:
return m.clearedcreate_by
case orgunitmember.EdgeUpdateBy:
return m.clearedupdate_by
case orgunitmember.EdgeUser:
return m.cleareduser
case orgunitmember.EdgePosition:
return m.clearedposition
ca... | [
-0.845772922039032,
-0.34482377767562866,
0.700292706489563,
-0.2099539339542389,
-0.10931911319494247,
0.5152009725570679,
-0.3021545112133026,
-0.6866291761398315,
0.08727423846721649,
0.5961057543754578,
-0.11046489328145981,
0.41599518060684204,
-1.1951682567596436,
-0.5406579375267029... |
func (m *OrgUnitMemberMutation) ClearEdge(name string) error {
switch name {
case orgunitmember.EdgeCreateBy:
m.ClearCreateBy()
return nil
case orgunitmember.EdgeUpdateBy:
m.ClearUpdateBy()
return nil
case orgunitmember.EdgeUser:
m.ClearUser()
return nil
case orgunitmember.EdgePosition:
m.ClearPositi... | [
-1.1482164859771729,
0.4528715908527374,
0.4669400751590729,
0.6783263683319092,
0.33014896512031555,
0.22022199630737305,
-0.06550852954387665,
-0.2759401798248291,
0.024722721427679062,
0.40177395939826965,
0.013590656220912933,
0.09365511685609818,
-0.8878161907196045,
0.052127357572317... |
func (m *OrgUnitMemberMutation) ResetEdge(name string) error {
switch name {
case orgunitmember.EdgeCreateBy:
m.ResetCreateBy()
return nil
case orgunitmember.EdgeUpdateBy:
m.ResetUpdateBy()
return nil
case orgunitmember.EdgeUser:
m.ResetUser()
return nil
case orgunitmember.EdgePosition:
m.ResetPositi... | [
-1.191933274269104,
0.06924577802419662,
0.3848207890987396,
0.5650947690010071,
0.7384392023086548,
-0.23578257858753204,
0.1031099334359169,
0.03494313359260559,
-0.2543826997280121,
0.4987201690673828,
-0.26392030715942383,
0.28249698877334595,
-1.4592492580413818,
-0.5036854147911072,
... |
func newOrgUnitPositionMutation(c config, op Op, opts ...orgunitpositionOption) *OrgUnitPositionMutation {
m := &OrgUnitPositionMutation{
config: c,
op: op,
typ: TypeOrgUnitPosition,
clearedFields: make(map[string]struct{}),
}
for _, opt := range opts {
opt(m)
}
return m
} | [
-1.284331202507019,
-0.7561113834381104,
0.3017621338367462,
0.14216190576553345,
0.1545047163963318,
0.33105024695396423,
0.5400441288948059,
-0.12272016704082489,
0.21429790556430817,
0.4300934970378876,
-0.5180844664573669,
-1.1852917671203613,
-1.0163313150405884,
-1.4529682397842407,
... |
func withOrgUnitPositionID(id int) orgunitpositionOption {
return func(m *OrgUnitPositionMutation) {
var (
err error
once sync.Once
value *OrgUnitPosition
)
m.oldValue = func(ctx context.Context) (*OrgUnitPosition, error) {
once.Do(func() {
if m.done {
err = fmt.Errorf("querying old value... | [
-0.2828221321105957,
-1.121343731880188,
0.4872119724750519,
-0.36790886521339417,
0.12736664712429047,
1.1071003675460815,
-0.11842111498117447,
-0.4912811517715454,
0.8767777681350708,
0.8922518491744995,
-0.13093720376491547,
-0.6786247491836548,
-0.2710328996181488,
-0.5083556175231934... |
func withOrgUnitPosition(node *OrgUnitPosition) orgunitpositionOption {
return func(m *OrgUnitPositionMutation) {
m.oldValue = func(context.Context) (*OrgUnitPosition, error) {
return node, nil
}
m.id = &node.ID
}
} | [
-0.5584406852722168,
-1.0057227611541748,
0.6027860045433044,
-1.0371206998825073,
0.5722445845603943,
0.8654351830482483,
0.23000465333461761,
-0.30341213941574097,
0.17057619988918304,
0.43824881315231323,
-0.17144523561000824,
-1.0043699741363525,
0.018328625708818436,
-1.04833900928497... |
func (m OrgUnitPositionMutation) Client() *Client {
client := &Client{config: m.config}
client.init()
return client
} | [
-0.5481988191604614,
-0.6372456550598145,
0.028695613145828247,
-0.0649825856089592,
0.05368218198418617,
0.528060257434845,
0.8662340044975281,
-0.5216761827468872,
0.19997262954711914,
-0.5938339233398438,
-0.4501231014728546,
-0.25250983238220215,
-0.3310287594795227,
-1.227864980697631... |
func (m OrgUnitPositionMutation) Tx() (*Tx, error) {
if _, ok := m.driver.(*txDriver); !ok {
return nil, fmt.Errorf("ent: mutation is not running in a transaction")
}
tx := &Tx{config: m.config}
tx.init()
return tx, nil
} | [
-0.07103337347507477,
0.2387649565935135,
0.4156586825847626,
0.18938501179218292,
0.8498884439468384,
0.31060361862182617,
0.0366164855659008,
0.006263699382543564,
0.3784256875514984,
-0.21769119799137115,
-0.21410049498081207,
-0.6167037487030029,
-0.6459671258926392,
-1.195461630821228... |
func (m *OrgUnitPositionMutation) ID() (id int, exists bool) {
if m.id == nil {
return
}
return *m.id, true
} | [
-0.710445761680603,
-0.3687446117401123,
0.5343257188796997,
0.4614986479282379,
0.8147414326667786,
0.6149646043777466,
0.17674565315246582,
0.046795811504125595,
0.8553590178489685,
0.3680111765861511,
-0.38006725907325745,
-1.23402738571167,
-1.2338217496871948,
0.019744805991649628,
... |
func (m *OrgUnitPositionMutation) SetCreateByUser(i int) {
m.create_by = &i
} | [
-0.2285395860671997,
0.535273015499115,
0.30389198660850525,
0.6314597129821777,
0.28772789239883423,
0.17330871522426605,
1.334366798400879,
-0.5225275158882141,
-1.9462285041809082,
-0.730513870716095,
-1.103096842765808,
-1.2793903350830078,
-0.22560058534145355,
0.3381249010562897,
0... |
func (m *OrgUnitPositionMutation) CreateByUser() (r int, exists bool) {
v := m.create_by
if v == nil {
return
}
return *v, true
} | [
-0.7410067915916443,
0.8880384564399719,
0.5970779061317444,
0.6426092386245728,
0.27764254808425903,
-0.24244333803653717,
1.3063422441482544,
-0.17417560517787933,
-1.4459047317504883,
-0.12443174421787262,
-1.2132785320281982,
-1.5996174812316895,
-0.6834012866020203,
0.0841167122125625... |
func (m *OrgUnitPositionMutation) OldCreateByUser(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldCreateByUser is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldCreateByUser requires an ID field in the mutation... | [
-0.5287123322486877,
0.023747151717543602,
0.6245196461677551,
0.039365317672491074,
0.1499171406030655,
0.06472981721162796,
1.2519340515136719,
-0.7584059834480286,
-0.7076178789138794,
-0.8150625228881836,
-0.48118022084236145,
-0.5162009596824646,
-0.5912127494812012,
0.489123344421386... |
func (m *OrgUnitPositionMutation) ClearCreateByUser() {
m.create_by = nil
m.clearedFields[orgunitposition.FieldCreateByUser] = struct{}{}
} | [
0.06775002181529999,
0.4631437063217163,
0.4461822509765625,
0.8147716522216797,
-0.34946539998054504,
0.5844530463218689,
0.9125412702560425,
-0.9274383783340454,
-1.0137592554092407,
-0.21395368874073029,
-0.7232928276062012,
-0.08221457153558731,
-0.1912349909543991,
-0.3163160085678100... |
func (m *OrgUnitPositionMutation) CreateByUserCleared() bool {
_, ok := m.clearedFields[orgunitposition.FieldCreateByUser]
return ok
} | [
0.05691453069448471,
0.330227792263031,
0.5716243982315063,
0.22214199602603912,
0.07295158505439758,
0.7751926183700562,
0.5172378420829773,
-0.5274032950401306,
-0.6088437438011169,
0.05421122908592224,
-0.4103643000125885,
-0.7606912851333618,
-0.5968610048294067,
-0.6839261651039124,
... |
func (m *OrgUnitPositionMutation) ResetCreateByUser() {
m.create_by = nil
delete(m.clearedFields, orgunitposition.FieldCreateByUser)
} | [
0.3385574519634247,
0.3760323226451874,
0.3742169737815857,
0.8594745397567749,
0.2879699170589447,
0.08804412931203842,
1.0090529918670654,
-0.5541382431983948,
-1.3841279745101929,
-0.40839406847953796,
-0.6937960386276245,
-0.25812047719955444,
-0.6275521516799927,
-0.5103201270103455,
... |
func (m *OrgUnitPositionMutation) SetUpdateByUser(i int) {
m.update_by = &i
} | [
-0.2956330180168152,
0.18015822768211365,
0.4140317440032959,
0.6138511300086975,
-0.7175886631011963,
-0.2534202039241791,
0.9955185651779175,
0.18718792498111725,
-1.280327320098877,
-0.19887851178646088,
-0.6515669226646423,
-1.3349461555480957,
-0.2735571265220642,
-0.37130728363990784... |
func (m *OrgUnitPositionMutation) UpdateByUser() (r int, exists bool) {
v := m.update_by
if v == nil {
return
}
return *v, true
} | [
-1.0772417783737183,
0.5469555854797363,
0.6547076106071472,
0.5775672793388367,
-0.5148999094963074,
-0.5205268263816833,
1.1988563537597656,
0.08360239863395691,
-1.1056091785430908,
0.13193237781524658,
-1.165396809577942,
-1.1436291933059692,
-0.8184987306594849,
-0.47375935316085815,
... |
func (m *OrgUnitPositionMutation) OldUpdateByUser(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldUpdateByUser is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldUpdateByUser requires an ID field in the mutation... | [
-0.44463759660720825,
-0.23967111110687256,
0.7046812176704407,
0.12348039448261261,
-0.3064892292022705,
-0.24660900235176086,
0.8261999487876892,
-0.43028774857521057,
-0.4731396734714508,
-0.4825076758861542,
-0.3333755433559418,
-0.5384044051170349,
-0.7062007784843445,
0.2644844055175... |
func (m *OrgUnitPositionMutation) ClearUpdateByUser() {
m.update_by = nil
m.clearedFields[orgunitposition.FieldUpdateByUser] = struct{}{}
} | [
0.043964680284261703,
-0.13672798871994019,
0.46602436900138855,
1.153709888458252,
-1.4884047508239746,
0.4820420742034912,
0.313391774892807,
0.015581203624606133,
-0.4149520993232727,
0.2843687832355499,
-0.25203830003738403,
-0.5095520615577698,
-0.20060181617736816,
-0.974859118461608... |
func (m *OrgUnitPositionMutation) UpdateByUserCleared() bool {
_, ok := m.clearedFields[orgunitposition.FieldUpdateByUser]
return ok
} | [
-0.14442923665046692,
-0.09879124164581299,
0.5249732732772827,
0.39422160387039185,
-1.0139429569244385,
0.42729485034942627,
0.46917885541915894,
-0.2765064835548401,
-0.4699818789958954,
0.5398436188697815,
-0.31005802750587463,
-0.24764814972877502,
-0.8082345128059387,
-1.051892638206... |
func (m *OrgUnitPositionMutation) ResetUpdateByUser() {
m.update_by = nil
delete(m.clearedFields, orgunitposition.FieldUpdateByUser)
} | [
0.21689729392528534,
-0.34537574648857117,
0.341503381729126,
1.1714478731155396,
-0.5088176727294922,
-0.2549290060997009,
0.7056272029876709,
0.12935484945774078,
-0.8750903010368347,
0.21998801827430725,
-0.06980577111244202,
-0.4383673667907715,
-0.6884812116622925,
-1.3193488121032715... |
func (m *OrgUnitPositionMutation) SetCreateTime(t time.Time) {
m.create_time = &t
} | [
-0.11521055549383163,
0.2748801112174988,
0.24871942400932312,
-0.19730810821056366,
1.3778709173202515,
0.12525704503059387,
-0.5961989164352417,
0.010988987050950527,
-0.3321763277053833,
0.6363697648048401,
-0.7396917939186096,
-1.5637813806533813,
-0.12749435007572174,
1.04315841197967... |
func (m *OrgUnitPositionMutation) CreateTime() (r time.Time, exists bool) {
v := m.create_time
if v == nil {
return
}
return *v, true
} | [
-0.535116970539093,
0.6026033759117126,
0.6454790830612183,
-0.016709132120013237,
1.40739107131958,
-0.06363558769226074,
-0.6319215893745422,
-0.4055195450782776,
-0.07278327643871307,
0.9209655523300171,
-0.646424412727356,
-2.313366413116455,
-1.0166386365890503,
0.18646828830242157,
... |
func (m *OrgUnitPositionMutation) OldCreateTime(ctx context.Context) (v time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldCreateTime is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldCreateTime requires an ID field in the mutation... | [
-0.7923263907432556,
0.10802830755710602,
0.5773165822029114,
-0.6930993795394897,
0.6850736737251282,
-0.04365000128746033,
-0.06667817384004593,
-0.6693137288093567,
0.4333595335483551,
0.6426066160202026,
-0.32191047072410583,
-1.3691033124923706,
-0.5052369832992554,
0.5926626324653625... |
func (m *OrgUnitPositionMutation) ResetCreateTime() {
m.create_time = nil
} | [
-0.08868679404258728,
0.29528433084487915,
0.16877809166908264,
0.07321272790431976,
1.17063307762146,
-0.2519109845161438,
-0.2656481862068176,
-0.24303600192070007,
-0.4517756402492523,
0.7924243807792664,
-0.932361364364624,
-0.19066031277179718,
-0.922554075717926,
0.2465095967054367,
... |
func (m *OrgUnitPositionMutation) SetUpdateTime(t time.Time) {
m.update_time = &t
} | [
-0.44929203391075134,
-0.16152118146419525,
0.5444557070732117,
0.1279650777578354,
0.1172555536031723,
0.4250607192516327,
-0.8262770771980286,
0.8433799743652344,
0.41044899821281433,
1.0737459659576416,
-0.4590594470500946,
-1.2022305727005005,
-0.038789764046669006,
0.413503497838974,
... |
func (m *OrgUnitPositionMutation) UpdateTime() (r time.Time, exists bool) {
v := m.update_time
if v == nil {
return
}
return *v, true
} | [
-0.9533714056015015,
0.38218948245048523,
0.7642126083374023,
0.3397423028945923,
0.33837366104125977,
-0.06220274418592453,
-0.6353890895843506,
0.07541296631097794,
0.06841588020324707,
1.2570370435714722,
-0.6290723085403442,
-1.8831664323806763,
-0.9082247614860535,
-0.1114730834960937... |
func (m *OrgUnitPositionMutation) OldUpdateTime(ctx context.Context) (v *time.Time, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldUpdateTime is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldUpdateTime requires an ID field in the mutatio... | [
-1.3469160795211792,
-0.1273559331893921,
0.7258358597755432,
-0.2863020598888397,
-0.26556625962257385,
0.015685930848121643,
-0.2639855146408081,
-0.4066786468029022,
0.26319050788879395,
0.4753918945789337,
-0.31398534774780273,
-1.3567466735839844,
-0.3569599390029907,
0.47725731134414... |
func (m *OrgUnitPositionMutation) ClearUpdateTime() {
m.update_time = nil
m.clearedFields[orgunitposition.FieldUpdateTime] = struct{}{}
} | [
-0.5324656367301941,
-0.1339671015739441,
0.42981013655662537,
0.2019185870885849,
-0.8128116130828857,
0.7755581140518188,
-0.8134167790412903,
-0.03242192044854164,
0.248354971408844,
1.176789402961731,
-0.35013535618782043,
-0.6798850893974304,
0.046222712844610214,
-0.22384287416934967... |
func (m *OrgUnitPositionMutation) UpdateTimeCleared() bool {
_, ok := m.clearedFields[orgunitposition.FieldUpdateTime]
return ok
} | [
-0.8504445552825928,
0.0693577229976654,
0.6020202040672302,
-0.02704964205622673,
-0.655387818813324,
0.43986937403678894,
-0.7620128393173218,
-0.63166344165802,
-0.07999619841575623,
1.0341717004776,
-0.286704421043396,
-0.5587557554244995,
-0.7599018812179565,
-0.15559570491313934,
-... |
func (m *OrgUnitPositionMutation) ResetUpdateTime() {
m.update_time = nil
delete(m.clearedFields, orgunitposition.FieldUpdateTime)
} | [
-0.24902082979679108,
-0.29239559173583984,
0.26796257495880127,
0.41210323572158813,
-0.07027048617601395,
-0.020671069622039795,
-0.32802343368530273,
0.3066708445549011,
-0.11505650728940964,
0.9075206518173218,
-0.5447890758514404,
-0.5977108478546143,
-0.5978639721870422,
-0.607388079... |
func (m *OrgUnitPositionMutation) SetName(s string) {
m.name = &s
} | [
-0.5470548868179321,
0.19416557252407074,
0.13050580024719238,
0.6569058299064636,
-0.2861023247241974,
0.0228191539645195,
0.18736568093299866,
0.4412826597690582,
-0.45675939321517944,
0.19440200924873352,
-0.7518259286880493,
-1.1800129413604736,
-0.433348685503006,
-0.08837435394525528... |
func (m *OrgUnitPositionMutation) Name() (r string, exists bool) {
v := m.name
if v == nil {
return
}
return *v, true
} | [
-1.4049994945526123,
0.017476914450526237,
0.5569971799850464,
0.22537507116794586,
0.0068647610023617744,
-0.36016845703125,
0.17290546000003815,
-0.6049754023551941,
-0.2522488534450531,
1.0151214599609375,
-0.700936496257782,
-1.7995290756225586,
-0.6917969584465027,
-0.8002864718437195... |
func (m *OrgUnitPositionMutation) OldName(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldName is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldName requires an ID field in the mutation")
}
oldValue, err ... | [
-0.31058433651924133,
-0.24802127480506897,
0.784426212310791,
0.011755167506635189,
0.07001249492168427,
0.4307004511356354,
0.03906029835343361,
-0.27702999114990234,
0.1548156589269638,
0.5845890045166016,
0.7428103089332581,
-0.3550977110862732,
-0.23051385581493378,
-0.531820714473724... |
func (m *OrgUnitPositionMutation) ResetName() {
m.name = nil
} | [
-0.3247099816799164,
0.03350929170846939,
0.19695541262626648,
0.48625898361206055,
0.28235599398612976,
-0.160590261220932,
0.14950557053089142,
0.2227395474910736,
-0.3416433036327362,
0.2550492584705353,
-0.6237833499908447,
-0.5779635906219482,
-0.7313857078552246,
-0.8042556047439575,... |
func (m *OrgUnitPositionMutation) SetDuty(s string) {
m.duty = &s
} | [
-0.018861589953303337,
0.24961955845355988,
0.25065889954566956,
0.3059976398944855,
0.6673657298088074,
0.024541616439819336,
0.28273430466651917,
-0.4107632040977478,
-0.4991234838962555,
-0.32146593928337097,
-1.1486942768096924,
0.2090001404285431,
-0.19553057849407196,
0.3150853216648... |
func (m *OrgUnitPositionMutation) Duty() (r string, exists bool) {
v := m.duty
if v == nil {
return
}
return *v, true
} | [
-0.5945125222206116,
0.3245663046836853,
0.6906604766845703,
0.07347524166107178,
0.8788952231407166,
0.20476289093494415,
-0.018116483464837074,
-0.4731825292110443,
-0.22624526917934418,
0.7239241003990173,
-0.9536468982696533,
-1.0625004768371582,
-1.3299684524536133,
-0.408078342676162... |
func (m *OrgUnitPositionMutation) OldDuty(ctx context.Context) (v string, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldDuty is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldDuty requires an ID field in the mutation")
}
oldValue, err ... | [
-0.5658573508262634,
-0.376488596200943,
0.8073822855949402,
-0.836943507194519,
0.7357175946235657,
-0.24481536448001862,
0.4392343759536743,
-0.9323811531066895,
0.2312997281551361,
0.09371491521596909,
0.025006646290421486,
0.18433040380477905,
-0.10167266428470612,
0.6169055700302124,
... |
func (m *OrgUnitPositionMutation) ClearDuty() {
m.duty = nil
m.clearedFields[orgunitposition.FieldDuty] = struct{}{}
} | [
-0.46103692054748535,
0.3892490565776825,
0.417479008436203,
-0.5332322716712952,
0.18241408467292786,
0.20379389822483063,
0.10492449998855591,
-1.0587577819824219,
-0.20068006217479706,
0.031310196965932846,
-0.6877481937408447,
0.584088146686554,
0.0023534982465207577,
-0.07086107134819... |
func (m *OrgUnitPositionMutation) DutyCleared() bool {
_, ok := m.clearedFields[orgunitposition.FieldDuty]
return ok
} | [
-0.647051990032196,
0.0537346787750721,
0.7986418008804321,
-1.0340560674667358,
0.32471027970314026,
0.6309006810188293,
-0.06000253185629845,
-0.872982919216156,
-0.40953537821769714,
0.396127313375473,
-0.46209636330604553,
0.4790438115596771,
-0.5751055479049683,
-0.15884925425052643,
... |
func (m *OrgUnitPositionMutation) ResetDuty() {
m.duty = nil
delete(m.clearedFields, orgunitposition.FieldDuty)
} | [
-0.164905846118927,
0.4273117184638977,
0.3702939450740814,
-0.05654722452163696,
0.9043738842010498,
-0.3329309821128845,
0.5977815985679626,
-0.566659688949585,
-0.6224901080131531,
-0.193047896027565,
-0.7189475893974304,
0.6441122889518738,
-0.49851998686790466,
-0.19534721970558167,
... |
func (m *OrgUnitPositionMutation) SetLevel(i int) {
m.level = &i
m.addlevel = nil
} | [
-0.37633925676345825,
0.8410002589225769,
0.19760026037693024,
0.7560137510299683,
0.731103241443634,
1.2785191535949707,
1.303717851638794,
-0.10619355738162994,
-0.4190262258052826,
-0.3262651264667511,
-1.2222689390182495,
-1.0113471746444702,
-0.6606754064559937,
-0.2095203697681427,
... |
func (m *OrgUnitPositionMutation) Level() (r int, exists bool) {
v := m.level
if v == nil {
return
}
return *v, true
} | [
-0.8296732902526855,
1.0013210773468018,
0.3279269337654114,
0.2524521052837372,
0.6307533979415894,
0.1909341812133789,
0.5036476254463196,
-0.33339548110961914,
-0.6306812167167664,
0.28465306758880615,
-0.9180698394775391,
-1.1588544845581055,
-0.8742707967758179,
-0.02202022634446621,
... |
func (m *OrgUnitPositionMutation) OldLevel(ctx context.Context) (v int, err error) {
if !m.op.Is(OpUpdateOne) {
return v, fmt.Errorf("OldLevel is only allowed on UpdateOne operations")
}
if m.id == nil || m.oldValue == nil {
return v, fmt.Errorf("OldLevel requires an ID field in the mutation")
}
oldValue, err ... | [
-0.44218310713768005,
0.2540193200111389,
0.6275691986083984,
0.11659564822912216,
0.42594975233078003,
0.4660909175872803,
0.7821664214134216,
-0.6307030916213989,
-0.5202205181121826,
0.04624524712562561,
0.04286854714155197,
-0.12402068078517914,
-0.854033350944519,
0.41409724950790405,... |
func (m *OrgUnitPositionMutation) AddLevel(i int) {
if m.addlevel != nil {
*m.addlevel += i
} else {
m.addlevel = &i
}
} | [
-0.958614706993103,
0.7211002707481384,
0.5214219093322754,
0.618243396282196,
0.5765094757080078,
1.258876085281372,
0.7147505283355713,
-0.6622766852378845,
0.1905847191810608,
-0.872420072555542,
-0.8192190527915955,
-0.8242590427398682,
-0.856552004814148,
0.2159767597913742,
0.21464... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.